A chatbot based todo list and buddy, built to facilitate other features over time.
And more to come :)
git clone https://github.com/bacarpenter/bot.bot.git
Go to the project directory
cd bot.bot
Install dependencies
python3 -m pip install -r requirements.txt
Next, we will set up a data base for your todos. This will be done with firebase, because it is free and I like it. If you haven't already, sign up for firebase
secrets/
directory and rename it firebase-adminsdk.json
Phew, now the database should be setup!
Optional: With this step done you can use the bot in it's CLI form. Todo this, run python3 cli.py
. Make sure to add a todo before you try to read them.
To set up the discord bot, please follow this tutorial, up until the heading "How to Code a Basic Discord Bot with the discord.py Library". Save the token. Then, create a new file, named discord_token.json
under the secrets/
directory. Use the following template:
{
"token": "[TOKEN]"
}
and fill in [TOKEN]
with your actual token!
Now, you are ready to use the bot. Start talk to it through discord by using
python3 discord_interface.py
or, use the CLI with
python3 cli.py
To deploy this project, I use repl.it free hacker plan for students. Learn more about setting up a Repl.it here. And getting your free, time limited, hacker plan here.
Alternatively, any PaaS provider that allows for always online python projects should work just fine!
Client: Discord
Server: Python, Discord.py, Firebase
Make sure not to share anything in the secrets/
directory publicly online!
Thank you to...
Licensed under the MIT license. Learn more about the MIT license