dnh-bot / dnh-werewolf-bot

DNH Werewolf Discord bot
The Unlicense
10 stars 7 forks source link

Enhance commands, fix init gamelist bug, add Flask #124

Closed huybt22 closed 7 months ago

huybt22 commented 7 months ago
huybt22 commented 7 months ago

Could you explain how Flask improvement work?

@nitro2 In case using free deployment service, after period of inactivity, the bot will go to sleep. We use Flask to run as a web application, then manually access live website to trigger the restart but all data lost. We can ping the website to keep the bot alive using uptime monitoring services.

Refs: https://docs.render.com/free#free-web-services https://dev.to/12944qwerty/hosting-a-discord-py-bot-with-repl-it-3l5a

nitro2 commented 7 months ago

Could we move Flask to new file and keep bot.py standalone?

huybt22 commented 7 months ago

Could we move Flask to new file and keep bot.py standalone?

Flask functions are now separated, please check.

huybt22 commented 7 months ago

Instructions are added in README.md