Setting up the TT media bot

17 Nachrichten, 1 Seiten:  1 ↖ Zurück zur Themenliste

~msgScore~: +3

1. Chocolate-Icecream ,

Hello every one, so many people want to setup tt media bot so i am going to explain how to do that.
A fair warning i am going to tell about windows.
ok lets begin.
first download the python.
then, download and setup the virtual cable or VB from here.
https://www.dropbox.com/s/r85mz8erf4466ay/TTMediaBot-master.zip?dl=1
warning, i got the bot's setup from my friends who did all the necessary settings so in that you got his server properties so just change it in yours.
now every thing setup lets begin.
first install all the requirements from the requirements folder
for doing this open the requirements.txt
then copy the first one, and open windows power shell
and type like this, pip install beautifulsoup4
and wait for few seconds and do same with others.
now if you installed all of them currectly lets check your device's cable numbers
now open the TTMediaBot-master folder again and find-- TTMediaBot.py and hit tab untill you find the address barr hit enter there and paste the following
TTMediaBot.py --devices
if you installed all the requirements rite then it will tell you the numbers of your output and input devices.
now in those output and input devices, remember the numbers of vertual cable for out put and input boath.
now in the folder TTMediaBot-master find the file called-- config.json
in here first find the following-- "output_device": 0,
in here put your virtual cable's number for output device, and now find--
"input_device": 0
now here put the input device number of virtual cable
note-- in input devices there are 2 numbers for virtual cables so don't be confuse use which ever you find working for you
now in this file you can edit various things like-- you can set to channal messages true or false, you can set your players nickname or gender and most importantly in here you can change your server properties like ports user name pass or in which channal you want your bot to land.
now that's done now just hit enter in TTMediaBot.py and it will land on your server if you set every thing rite and if you put the correct numbers then it will work fine for yu
for checking just pm the bot message h and it will tell you all the necessary commands.
thanks hope you will all understand and parden if i did any mistake
thanks.

~msgScore~: +2

Zuletzt geändert von Chocolate-Icecream , Nov 3 2021 03:49:25

2. Mortem,

The way pip requirements work, you can just do


pip install -r requirements.txt

No need for copying and pasting the modules from the requirements file or whatever.

~msgScore~: +0

3. Chocolate-Icecream ,

yep absolutely rite, but I hav'ntt mentioned this because
its give me following error, ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
even though I got the file

~msgScore~: +0

Zuletzt geändert von Chocolate-Icecream , Nov 7 2021 08:57:49

4. godfather,

Are you sure you've cd'ed into the directory in that case?

~msgScore~: +0

5. Chocolate-Icecream ,

yes i have

~msgScore~: +0

6. Valley_prime,

So when I opened the TTMediaBot.py file, it asks me what app I want to open, so I'm not sure what to do.

~msgScore~: +0

7. JMouse,

you need python

~msgScore~: +0

8. jackson95,

just be aware that youtube doesn't work with the media bot anymore, apaerntly youtube added an account system for playing videos externally so the bot won't work with it

~msgScore~: +0

9. JMouse,

Lol it was only gunna be a matter of time before the bot wouldn't work with Youtube. Oh well, was nice while it lasted.

~msgScore~: +0

10. jackson95,

Yeah, it’s really unfortunate. I’m not sure what other services that it supports since I only ever used it for YouTube before, but I just wanted to make everyone in this topic aware of it before they set it up.

~msgScore~: +1

11. Swarup,

Does Spotify's services work in it? And we cannot use YouTube in any way?

~msgScore~: +0

12. Symbian,

I think the bot just need to be reprogramed. Invidious for example can still play YouTube videos cause it's still developed, and there's also an app called Freetube for Windows that allows you to view YouTube videos. Maybe it could be posible to imitate freetube's mechanism to view the videos on any way? It seems to be the most reliable option to view YouTube videos externally.

~msgScore~: +0

13. JMouse,

No, spotify will not work. I don't even know the rules for their api, only thing I know is spotify don't like people using their APIs for certain things

~msgScore~: +0

14. godfather,

Afaik you can only access the API if you have pro. Also with the api you can only control spotify's official clients just remotely through a third party interface if you so choose instead of the actual electron thing. Which is cool I guess? Idk why you'd want to do that except maybe like build your own command line thing or global hotkeys ap or something. Even then though spotify needs to recognize one of your devices as "active" before you can control it this way, which means that before you run any other third party app you must first open the official spotify client or website and play stuff on whichever device you want it to think is active.

~msgScore~: +0

Zuletzt geändert von godfather, Oct 16 2024 14:27:49

15. Robert-smith,

@Valley_prime: are you sure you added Python to the system path? open a cmd or pwsh, type python and see if python apeares there. if everything is fine it has to open your file.

~msgScore~: +0

16. jackson95,

Unfortunately, the new account system for the YouTube API will probably stop any bot from being able to play videos. You can still download videos from YouTube, which is probably how some apps work, but that’s not really plausible for a server based environment, so there’s not really much that anyone can do. also, if you are running on windows with python, I have had to use the py command as an argument for the python system path instead of the word python. This is because Microsoft tries to override it with their version of python from the Microsoft store, which I don’t know how reliable that specific version is.

~msgScore~: +0

17. Mortem,

I don't really use these bots anymore but you can probably just make an account for it and then authorize it with yt-dlp or something idk. It might require some changes to bot code though and I guess the open source one isn't being updated. As for Spotify, their official public API doesn't allow for playback. There are various reverse engineering projects e.g. Librespot.

~msgScore~: +0

17 Nachrichten, 1 Seiten:  1 ↖ Zurück zur Themenliste

Auf das Thema antworten

Sie müssen angemeldet sein, um posten zu können

Passwort vergessen? Benutzerkonto erstellen