diff options
author | ziro <palembani@gmail.com> | 2020-08-06 07:37:19 +0000 |
---|---|---|
committer | ziro <palembani@gmail.com> | 2020-08-06 07:37:19 +0000 |
commit | 13447ea06137e9a2d856283037692837836e9b42 (patch) | |
tree | eab42aa5e4e3615162a7581c8b44f4c962654ea3 /zibot.py | |
parent | f797397950a1757a978962e912edae1a7263d3cb (diff) | |
download | steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar.gz steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar.bz2 steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar.lz steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar.xz steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar.zst steve-bot-13447ea06137e9a2d856283037692837836e9b42.zip |
+ Steve Branch
Diffstat (limited to '')
-rw-r--r-- | zibot.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/zibot.py b/zibot.py deleted file mode 100644 index 2e0c3e0..0000000 --- a/zibot.py +++ /dev/null @@ -1,22 +0,0 @@ -import asyncio -import json -from bot import ziBot - -def check_jsons(): - try: - f = open('config.json', 'r') - except FileNotFoundError: - token = input('Enter your bot\'s token: ') - with open('config.json', 'w+') as f: - json.dump({"token": token}, f, indent=4) - -def init_bot(): - bot = ziBot() - with open('config.json', 'r') as f: - data=json.load(f) - bot.remove_command('help') - bot.run() - -if __name__ == "__main__": - check_jsons() - init_bot() |