diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-06-25 13:43:19 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-06-25 13:43:19 +0000 |
commit | d14a551967ee4f9dab257528c26c7bc86d210402 (patch) | |
tree | d626fa103d1efb74373aa3d920ae833d4ffebfb0 /readme.md | |
parent | 7178630d6417ab7ac7e32209750ff4f1171dbbc8 (diff) | |
parent | 00a1875afdec3f602479736a4a87b117ba83da4e (diff) | |
download | steve-bot-d14a551967ee4f9dab257528c26c7bc86d210402.tar steve-bot-d14a551967ee4f9dab257528c26c7bc86d210402.tar.gz steve-bot-d14a551967ee4f9dab257528c26c7bc86d210402.tar.bz2 steve-bot-d14a551967ee4f9dab257528c26c7bc86d210402.tar.lz steve-bot-d14a551967ee4f9dab257528c26c7bc86d210402.tar.xz steve-bot-d14a551967ee4f9dab257528c26c7bc86d210402.tar.zst steve-bot-d14a551967ee4f9dab257528c26c7bc86d210402.zip |
Merge branch 'master' of https://github.com/AnInternetTroll/mcbeDiscordBot
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -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. -This bot was built as a fork of [celesteBot](https://github.com/CelesteClassic/celestebot), so a lot of code is recycled. +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": <users_discord_id> +} +``` +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>` +`!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. |