aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorMango0x45 <dogelikestopkekmemes@gmail.com>2020-06-25 11:52:58 +0000
committerMango0x45 <dogelikestopkekmemes@gmail.com>2020-06-25 11:52:58 +0000
commite4fe80b7b01d0c55f43427a0c1526123521999ef (patch)
tree2aba14e265d2fef1cad511deb5d83e5884a36116 /readme.md
parenta987a1405bad5c4e813c9b847d06ef62e1a13eae (diff)
downloadsteve-bot-e4fe80b7b01d0c55f43427a0c1526123521999ef.tar
steve-bot-e4fe80b7b01d0c55f43427a0c1526123521999ef.tar.gz
steve-bot-e4fe80b7b01d0c55f43427a0c1526123521999ef.tar.bz2
steve-bot-e4fe80b7b01d0c55f43427a0c1526123521999ef.tar.lz
steve-bot-e4fe80b7b01d0c55f43427a0c1526123521999ef.tar.xz
steve-bot-e4fe80b7b01d0c55f43427a0c1526123521999ef.tar.zst
steve-bot-e4fe80b7b01d0c55f43427a0c1526123521999ef.zip
Updated readme
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md22
1 files changed, 21 insertions, 1 deletions
diff --git a/readme.md b/readme.md
index f85b95e..71001e7 100644
--- a/readme.md
+++ b/readme.md
@@ -1,8 +1,28 @@
# Minecraft Bedrock Discord Bot
## How to
-Make a file called `config.py` and add a `token="DiscordToken"` variable in there.
+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.