diff options
author | 2018-10-12 10:29:11 +1100 | |
---|---|---|
committer | 2018-10-12 10:29:11 +1100 | |
commit | 010cb21de026cd3021fa29fc38f838b754bd540c (patch) | |
tree | 73609ffc131e7aa76dc99dcd53286192696b86a2 /bot/bot.py | |
parent | Fixed docstrings, add blank lines for readibility, method of finding last 10 ... (diff) | |
parent | The app was logging to the wrong directory. This is now fixed. Also silenced ... (diff) |
Merge remote-tracking branch 'upstream/master' into candy-collection
Diffstat (limited to 'bot/bot.py')
-rw-r--r-- | bot/bot.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/bot/bot.py b/bot/bot.py deleted file mode 100644 index f2a857bc..00000000 --- a/bot/bot.py +++ /dev/null @@ -1,23 +0,0 @@ -from os import environ -from pathlib import Path -from sys import stderr -from traceback import print_exc - -from discord.ext import commands - -HACKTOBERBOT_TOKEN = environ.get('HACKTOBERBOT_TOKEN') - -ghost_unicode = "\N{GHOST}" -bot = commands.Bot(command_prefix=commands.when_mentioned_or(".", f"{ghost_unicode} ", ghost_unicode)) - -if __name__ == '__main__': - # Scan for files in the /cogs/ directory and make a list of the file names. - cogs = [file.stem for file in Path('cogs').glob('*.py')] - for extension in cogs: - try: - bot.load_extension(f'cogs.{extension}') - except Exception as e: - print(f'Failed to load extension {extension}.', file=stderr) - print_exc() - -bot.run(HACKTOBERBOT_TOKEN) |