bakerbot
Bakerbot is a discord.py bot written in Python :) Originally made as a learning exercise, now used by friends as a somewhat useful bot and used by me to experiment with dumb coding ideas.
Key Features
- A component-based frontend for the WolframAlpha API.
- A Discord-oriented manga reader using the Mangadex API.
- Games (something like Monopoly: coming soon, TM).
- Text generation using the Hugging Face and/or Neuro APIs.
- A customisable starboard implementation.
Prerequisites and Execution
Install Bakerbot's requirements by running the following command:
$ pip install -r requirements.txt
Once all the prerequisites are installed, create a secrets.json
file and format it like so (note that only the discord-token
field is required, all others are optional):
{
"discord-token": "YOUR DISCORD TOKEN HERE",
"hugging-token": "YOUR HUGGING FACE TOKEN HERE",
"neuro-token": "YOUR NEURO TOKEN HERE",
"openai-token": "YOUR OPENAI TOKEN HERE",
"mongodb-address": "YOUR MONGODB ADDRESS HERE",
"wolfram-id": "YOUR WOLFRAM ID HERE",
"wolfram-salt": "YOUR WOLFRAM SALT HERE",
"wolfram-hash": "true/false"
}
If the
hugging-token
field is not specified, functionality related to Hugging Face will be disabled.
If theneuro-token
field is not specified, functionality related to the Neuro API will be disabled.
If theopenai-token
field is not specified, functionality related to OpenAI will be disabled.
If themongodb-address
field is not specified, database-related features like the starboard will be disabled.
If thewolfram-id
field is not specified, functionality related to WolframAlpha will be disabled.
After that, open a terminal and run python main.py
. Simple as that!