llama bot
This repository contains source code for the llama bot.
- Discord bot made for the LP discord server. Making it work on other servers will need some work.
- Invitation of this bot to other server is blocked due to potential server performance issue. You wll have to host the bot yourself if you want it on your discord server.
- The bot requires Python version 3.9 or greater.
- local configuration file and database does not exist. Everything is stored in google firebase.
Setting up locally
Required knowledge:
- python
- firebase
- discord bots
Steps:
-
Clone this repo
git clone --depth 1 https://github.com/developomp/llama-bot.git
(--depth 1
is to save storage space)
-
Open
bot
directory -
create
secrets
directory -
Create a new discord bot
-
Create a firebase project and enable firestore database
-
Generate and download service account key from firebase, rename it to
firebase-adminsdk.json
, and put it insecrets
directory. -
create
secret.json
insecrets
directory and put the discord bot token{ "token": "<TOKEN>" }
-
Install dependencies (requirements.txt is in project root)
pip install -r requirements.txt
-
Start the bot
python llama.py
More info:
- discord developers documentation: https://discord.com/developers/docs
- discord.py documentation: https://discordpy.readthedocs.io
- firebase admin sdk documentation: https://firebase.google.com/docs/admin/setup#initialize-sdk