moonstar-x / discord-tts-bot

A Text-to-Speech bot for Discord.
https://docs.moonstar-x.dev/discord-tts-bot
MIT License
98 stars 84 forks source link

How to use TTS without `/say` command after have joined channel #92

Closed kamontia closed 1 year ago

kamontia commented 1 year ago

:confused: Question

Possible to use TTS without /say command? discord-tts-bot is very useful and simple feature. However it is a little troublesome because it is necessary to type the command each time.

config/settings.json

{
  "token": "***masked***",
  "prefix": null,
  "owner_id": "***masked***",
  "owner_reporting": false,
  "presence_refresh_interval": 60000,
  "default_disconnect_timeout": 10,
  "testing_guild_id": null,
  "provider_type": "level",
  "redis_url": null,
  "enable_tts_channels": true,
  "enable_keep_alive": true,
  "enable_who_said": true
}

:question: Additional Information

Discord Developer Configuration:

Screenshot 2023-04-04 at 14 20 53 Screenshot 2023-04-04 at 14 22 00
moonstar-x commented 1 year ago

Hey there,

Currently this is not possible, your best option would be to use a TTS channel (since I see you have that option enabled).

Is this an okay solution or do you think it would be better to have some sort of command to enable further messages to be read out loud until disabled? Something like a /say_next which enables further messages to be read out?

kamontia commented 1 year ago

@moonstar-x Thank you for quick response. I got current situation.

your best option would be to use a TTS channel (since I see you have that option enabled)

Does it mean using /tts command?

do you think it would be better to have some sort of command to enable further messages to be read out loud until disabled?

Yes, I wanna use this feature if it will be implemented. Most of No VC user join with smart phone. So it's useful that this bot always provides TTS without prefix command.

moonstar-x commented 1 year ago

Essentially, create a channel on your server that serves only for TTS messages by using the /set_channel_provider command. You can update the settings with any of the *_set_channel commands.

When you use this command, all messages in that channel will be read out by the bot. This applies for everybody that chats in that channel.

This can help with mobile users, this way they can choose the channel and send messages there instead of having to use the /say command.

kamontia commented 1 year ago

@moonstar-x Thank you. I was able to achieve what I wanted to do.

I used /set_channel_provider, but it was set in chat of the voice chanels and did not seem to work. Command it on a text channel worked as expected. Thank you very much. This ticket is closed : )