Skip to content

All in one Discord bot for student societies & communities

License

Notifications You must be signed in to change notification settings

cwsbowe/KoalaBot

 
 

Repository files navigation

KoalaBot

Discord Server GitHub Workflow Status Codecov Language grade: Python

KoalaBot is a free open source discord bot being developed by students from around the UK. Our aim is to ensure university society committee leaders can access all they need and from one easy to use discord bot to improve their server and society!

Authors

All of our other amazing developers can be seen on our website https://koalabot.uk

See also the list of contributors to this repo.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

This application uses python 3.8 which you can download here

All python packages you need can be found in the requirements.txt. Before running the bot you must install these as so:

$ pip3 install -r requirements.txt

Linux

On linux, database encryption will be enabled. Therefore, further packages are needed.

$ sudo apt install libsqlcipher-dev

Environment Variables

Before running the bot you will need to create a .env file in the root directory of this project. A template for this can be found here:

# Discord Bot
DISCORD_TOKEN = AdiSc0RdT0k3N # A discord Token taken from the discord developers portal 
BOT_OWNER = 123456789 # (optional) A discord ID for the person who should have access to owner commands (will default to bot owner)

# Encryption (optional)
ENCRIPTION = False # or True (default) for disabling/enabling the database encryption
SQLITE_KEY = 123EXAMPLE456ENCRYPTION789KEY0 # A custom SQLcipher key

# Twitch Alert (Required for TwitchAlert Extension)
TWITCH_TOKEN = tw1tch70k3n # Twitch Token taken from the twitch developers portal
TWITCH_SECRET = tw1tch53cr3t # Twitch Secret taken from the twitch developers portal

# Verification (Required for Verify Extension)
GMAIL_EMAIL = example@gmail.com # email for a gmail account
GMAIL_PASSWORD = example_password123 # password for the same gmail account

DISCORD_TOKEN is the only required environment variable for KoalaBot to be run.

Running the tests

Tests are run using the pytest library

$ pytest

Running KoalaBot

If all prerequisites have been followed, you can start KoalaBot with the following command

$ python3 KoalaBot.py

Links

About

All in one Discord bot for student societies & communities

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%