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:
- *
git clone --depth 1 https://github.com/developomp/llama-bot.git
(--depth 1
is to save storage space)pip install -r requirements.txt
python llama.py
Clone this repo
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 in secrets
directory.
create secret.json
in secrets
directory and put the discord bot token
{
"token": "<TOKEN>"
}
Install dependencies (requirements.txt is in project root)
Start the bot
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
GitHub
https://github.com/developomp/llama-bot
Source: https://pythonawesome.com/discord-bot-made-for-llamas-pyjamas-server/