Ninjaclasher / Ninjabot

A personal multi-purpose Discord Bot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ninjabot

A personal Discord bot I made as a fun project.

Installation

First, clone the repository:

$ git clone https://github.com/Ninjaclasher/Ninjabot
$ cd Ninjabot

Install the prerequisites:

$ apt update
$ apt install mariadb-server git python3
$ pip install -r requirements.txt

As well, create the database and load the tables:

$ mysql -uroot -p
MariaDB> CREATE DATABASE ninjabot DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci;
MariaDB> GRANT ALL PRIVILEGES ON ninjabot.* to 'ninjabot'@'localhost' IDENTIFIED BY '<password>';
MariaDB> exit
$ mysql -uroot -p ninjabot < ninjabot.sql

Finally, create the necessary files:

$ touch local_settings.py

Usage

Add any settings to local_settings.py that differ from settings.py. In particular, you should add the bot TOKEN, and MySQL credentials.

$ python3 main.py

About

A personal multi-purpose Discord Bot.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%