aboutsummaryrefslogtreecommitdiff
path: root/readme.md
blob: 326046644cb187b5f16ccd31b141f7ac202f9c30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Minecraft Bedrock Discord Bot

## How to
Make a file called `config.json` and add
```json
{
	"token": "your_bot_token"
}
```

Launch the bot with `python3 main.py` and you're ready to go. Unless dependencies. Dependencies are google cloud and discord.

Install the dependencies with `python -m pip install -r requirements.txt`

A few "dangerous" commands such as `!purge` are restriced to `bot_masters`, to add a bot master add it to `config.json`. Example:
```json
{
	"token": "your_bot_token",
	"bot_masters": 280428276810383370
}
```
You can also use lists, for example: `"bot_masters": [280428276810383370, 99457716614885376]`

Once you add yourself as a botmaster, you will be able to edit the config via discord with the command `!setvar <var_name> <var_value>`  
`!setvar` also supports lists which can be added like so: `!setvar <var_name> [<index 0>, <index 1>]`

This bot was built as a fork of [celesteBot](https://github.com/CelesteClassic/celestebot), so a lot of code is recycled.  
Feel free to make a pull request or use the code here.