2024-04-10 22:57:07 +00:00
|
|
|
# MineBot
|
2024-04-10 22:57:28 +00:00
|
|
|
|
2024-04-10 22:57:07 +00:00
|
|
|
A Discord bot for managing your Minecraft server via [Minecraft Minder](https://git.zyphon.com/will/minecraft-minder)
|
|
|
|
|
|
|
|
Forked from [SparkBot](https://github.com/jkkicks/SparkBot)
|
2024-04-10 22:57:28 +00:00
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
- Go to https://discord.com/developers/applications and make an application
|
|
|
|
- Go to the Bot page.
|
|
|
|
- Copy `env.dist` to `.env` and add the Bot Token to this file.
|
|
|
|
- Choose what channels you want the bot to operate in on your server and add their IDs to the file as well.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
Requires Python 3.
|
|
|
|
|
|
|
|
- Run `pip install -r requirements.txt`
|
|
|
|
|
|
|
|
## Running
|
|
|
|
|
|
|
|
Run `python3 main.py`
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2024-04-10 22:57:07 +00:00
|
|
|
### Command Tree
|
|
|
|
|
|
|
|
```
|
|
|
|
/addserver - Add a Minecraft server to the bot (global)
|
|
|
|
/adduser - Add a user to a Minecraft server (global)
|
|
|
|
/removeuser - Remove a user from a Minecraft server
|
|
|
|
/listservers - List the Minecraft servers you have access to
|
|
|
|
/status - Get the status of the first Minecraft server you have acces to
|
|
|
|
/start - Start the first Minecraft server you have acces to
|
|
|
|
```
|
2024-04-10 22:57:28 +00:00
|
|
|
|
2024-04-10 22:57:07 +00:00
|
|
|
#### Hidden commands
|
2024-04-10 22:57:28 +00:00
|
|
|
```
|
2024-04-10 22:57:07 +00:00
|
|
|
/99 - Brooklyn 99 Quotes
|
|
|
|
/shutdown - Kill the bot (global)
|
|
|
|
/sync - Sync the slash-command tree with Discord
|
2024-04-10 22:57:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Database
|
|
|
|
|
|
|
|
Initialization of the structure is automatically handled inside `main.py` and
|
2024-04-10 22:57:07 +00:00
|
|
|
creates the SQLITE3 file `bot_data.db`.
|