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.

example

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 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)

    • pip install -r requirements.txt

    Start the bot

    • python llama.py

More info:

GitHub

https://github.com/developomp/llama-bot

Source: https://pythonawesome.com/discord-bot-made-for-llamas-pyjamas-server/