diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-07-27 18:24:49 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-07-27 18:24:49 +0000 |
commit | 27c6a4a11ecfecfc5c989c96d9b236e89faf5984 (patch) | |
tree | 6051f1725c70651ddc326f2c395ee0af0cd3286f /readme.md | |
parent | fd4212d1a930aa72a84d8d380e22c3d89f206130 (diff) | |
parent | 85779b58d4b3b4b37ead36a68c8beacf0e2c554e (diff) | |
download | steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar.gz steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar.bz2 steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar.lz steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar.xz steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar.zst steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.zip |
Merge branch 'master' of github.com:AnInternetTroll/mcbeDiscordBot
Diffstat (limited to '')
-rw-r--r-- | readme.md | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -1,13 +1,6 @@ # 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` @@ -16,13 +9,17 @@ A few "dangerous" commands such as `!purge` are restriced to `bot_masters`, to a ```json { "token": "your_bot_token", - "bot_masters": <users_discord_id> + "<guild_id>": { + "bot_masters": <users_discord_id> + } } ``` +`guild_id` is the ID of the discord server in the form of a string while user IDs are integers + You can also use lists, for example: `"bot_masters": [280428276810383370, 99457716614885376]` -A user added as a botmaster will be able to edit the config via discord with the command `!setvar <var_name> <var_value>` +A user added as a botmaster 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. +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. |