Bettehem / ts3-musicbot

TS3 Music Bot with Spotify, YouTube, SoundCloud and Bandcamp support!
https://gitlab.com/Bettehem/ts3-musicbot
GNU General Public License v3.0
51 stars 11 forks source link

Move bot to room using commands? #9

Closed PatRakowicz closed 8 months ago

PatRakowicz commented 8 months ago

Hello, was wondering if there is a way to get the bot to move to a room when a user requests the bot to move? Would something else be needed for the teamspeak client to allow this to be done?

For example, if a user is in a different room and the bot is in a place holder room, if the user requests the bot %come the bot moves to the room and when the user is done using the bot %goaway the bot goes back to the place holder room.

Bettehem commented 8 months ago

Hello, currently there is no way of joining a specific channel using the chat commands, but you can set a specific channel to join in the bot's config file with the CHANNEL_NAME config option, or using the -c/--channelname flag when launching the bot.

I could add a chat command for joining a different channel. How does something like %goto and %return sound? The syntax to join a channel named "somechannel" could be something like this: %goto somechannel And when you want the bot to return to the original channel, you would run the %return command.

Let me know if you think this is good or if something should be changed

PatRakowicz commented 8 months ago

Yea that would work. Either that or allow the user to direct message the bot, asking to %join allowing the bot to join the channel the user is in. Or allowing to directly have the bot go to a channel as mentioned above.

Bettehem commented 8 months ago

Added %goto and %return commands in the latest commit: fed126ca