Discord bot for fun. Ripe, fresh and juicy.
- Clone the repository.
- Set the working directory as the root directory of the repository (
/pomelo-discord-bot
by default). - Get the necessary API tokens and set them up as environmental variables:
- Discord bot token
- Google Maps API token
- MongoDB's connection token (full identifier)
- Execute
poetry install
. - Run the script by executing
poetry run python src/main.py
.
- When executing a command that connects to MongoDB, I get "certificate verify failed: certificate has expired" error. What do I do?
The Root CA the Mongo Atlas uses has expired. Install ISRG Root X1, ISRG Root X2 and Let's Encrypt R3 certificates from here. - How could I run Pomelo from AWS?
Ahh, those were the days. Use crontab together with nohup. You should find a relevant, thorough guide somewhere.
List of hosting services Pomelo used, in chronological order:
- Localhost (sic!)
- replit.com (I'm not even joking)
- AWS (my wallet still hurts)
- Heroku (it was wonderful)
- Raspberry Pi