Skip to content

Mathtin/mc-discord-bot

Repository files navigation

MC Discord Bot

License: MIT

Minecraft Discord Bot

Features

Control whitelist via specified channel

Add people to whitelist manually

Rank people (integration with various mods and plugins)

Usage

Clone repository

git clone https://github.com/Mathtin/mc-discord-bot.git
cd mc-discord-bot

Install the dependencies via pip

python3 -m pip install -r requirements.txt

Create .env file

cp .env.template .env
nano .env

Create configuration file

cp mc-bot_example.cfg mc-bot.cfg
nano mc-bot.cfg

Start app

python3 src/main.py

Docker

Pull latest image from hub

docker pull mathtin/mc-discord-bot:latest

Create env and configuration files

wget -O mc-bot.env https://raw.githubusercontent.com/Mathtin/mc-discord-bot/master/.env.template
nano mc-bot.env
wget -O mc-bot.cfg https://raw.githubusercontent.com/Mathtin/mc-discord-bot/master/mc-bot_example.cfg
nano mc-bot.cfg

Run container (attach to network where your db is reachable)

docker run -d --name mc-bot \ 
           -e $(pwd)/mc-bot.env \
           -v $(pwd)/mc-bot.cfg:/app/mc-bot.cfg \
           --network=multi-host-network \
           mathtin/mc-discord-bot:latest

Or you can use docker compose (postgres+mc-discord-bot) using files from repository

wget https://raw.githubusercontent.com/Mathtin/mc-discord-bot/master/docker-compose.yml
mkdir scripts && wget -P scripts https://raw.githubusercontent.com/Mathtin/mc-discord-bot/master/scripts/01_users.sql
wget https://raw.githubusercontent.com/Mathtin/mc-discord-bot/master/database.env

Set password in database.env

Note: DATABASE_ACCESS_URL=postgresql+asyncpg://root:PASTE_PASSWORD_HERE@postgres_container/mc_discord_bot

Development

Issues and pull requests are highly welcomed!

Based on Overlord project.

Author

Copyright (c) 2021 Daniel Mathtin Shiko

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages