Closed kimsin98 closed 2 years ago
@AKSoo I've pushed some code, please take a look
I've kept @ everyone with permission in the channels while we dont merge this PR.
The bot here will be only run once, and the
on_ready
will be run only once. So all that is bound to the issue trigger on Github will not be run.
I was thinking Github Actions could send a signal to the bot host to restart the bot, but this is probably better for bot uptime, as long as the refreshing projects every minute isn't too taxing for the host. However, if the bot keeps projects up to date by itself, I don't think the Github Action and ensure_discord_channels.py
is necessary at all.
lmao I was with Jinja in my head, forgot about .format
looks good!
@anibalsolon This bot needs to restart when there are new/changed projects and KEEP running to handle reaction roles.
You'll need to figure out a way to edit github actions to accomplish this and host the bot somewhere reliable.