A bot example that handles github webhooks and sends stuff to revolt using voltage and aiohttp's web server capabilities.
I am just hosting the bot on replit, do host it all you have to do is:
- Rreate a new python repl
- Paste & modify bot.py as desired
- Add variables to enviroment
- Add the url of the repl (https://examplerepl.exampleuser.repl.co) with "/github" at the end (e.g. https://examplerepl.exampleuser.repl.co/github) to the webhooks of your repository
- Make sure to add the bot to the server with the channel that the messages are supposed to be sent to and that it has sufficient permissions.
- Use somthing like uptimerobot to keep the repl alive.
That's it, congrats you have github webhooks in your revolt server, woo!