A simple utilities bot for a very lazy developer.
Toastoid is a (currently) simple Discord.py bot with quite limited functionality. It's meant to be a convenience utilities bot, supplying basic web functionality for when you're too lazy to open a browser. It's also a personal experiment in docker containerization.
This project should probably not be seriously used as a Discord bot in a sizeable server, I'm running it exclusively on small servers with my friends.
Currently, the implemented commands are:
- ping: Ping the bot, make sure it's not dead.
- g [query]: Short for 'google', but actually searches DuckDuckGo. Returns top 3 results for query.
- kv [set/add] [key] [value?]: A simple public key-value store using SQLite. Good for leaving silly notes.
You need to create a discord bot and store the token in a token.txt
file.
The project runs as a composed docker container using a local volume. You need the code and a token.txt
file in the same directory. That is, the directory structure should look like:
toastoid-bot
- [the repository files]
- token.txt
The easiest way to accomplish this is to clone the repository and add the token file.
When you have the directory set up, simply build and run the containers:
docker-compose up -d --build
You can stop the bot by composing down:
docker-compose down
This project is licensed under the MIT License - see the LICENSE file for details