Discord-TTS/Bot

Won't talk

Closed this issue · 5 comments

Sometimes the bot will connect to the channel but won't talk.

Yeah... This happens during a gtts block during espeak mode. For some reason the ProcessPoolExecutor gets stuck and won't call make_espeak anymore, stalling the bot.
If anyone has an idea of why this happens let me know, I'm thinking of moving espeak to a different process and using docker-compose to handle IPC and stuff, which should fix this issue (or at least make it more diagnosable)

Is there any way to at least reset the bot?, maybe the good ol' resetting is a workaround lol

Yeah, but

  1. This means it tries contacting Google again before swapping back to espeak, encouraging longer bans
  2. It's a temporary solution, I have a life (somewhat) and cannot just sit there restarting the bot

Fair enough, if it is of any help this is what happened.

  • Use the bot for a bit.
  • Don't use it for a while.
  • After noticing the bot, disconnecting it using discord's tool (not by -leave)
  • Use it again.

Just saying, the block is global and the bot tries again with Google every hour, I also get log messages every time the bot swaps between modes and it doesn't require a leave/join.