I send my bot to /restart command after need to

automatically restart my bot.



Restart my bot mean my build again deploy . How to do it? Any idea for it?

5 ответов

29 просмотров
Solution-X Автор вопроса

Any idea for it. I'm using typescript

You must first call a command, that will start your bot and then kill the running bot software.

Yes you can use bot.stop() Then bot.start() but I don't recommend this way. My own solution would be child process command that you will use bash commands whenever the /restart event is triggered to run a script that will shut the bot down then start it again

Похожие вопросы

Карта сайта