ohbm / hackathon2022

Website for the 2022 OHBM Hackathon
https://ohbm.github.io/hackathon2022/
MIT License
5 stars 11 forks source link

Project roles, channels, reactions #71

Closed kimsin98 closed 2 years ago

kimsin98 commented 2 years ago

@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.

anibalsolon commented 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.

https://github.com/ohbm/hackathon2022/pull/71/files#diff-3adf1426e3c0c973232ce6292599de9d844326eb462f0314eb9a1a3ca5297405R99

kimsin98 commented 2 years ago

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.

anibalsolon commented 2 years ago

lmao I was with Jinja in my head, forgot about .format

looks good!