aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__main__.py
diff options
context:
space:
mode:
authorGravatar Derek Fitzpatrick <[email protected]>2018-10-11 14:18:13 -0700
committerGravatar Derek Fitzpatrick <[email protected]>2018-10-11 14:18:13 -0700
commit8b2fa26a065b18cb9c4aa441eb1b6e360594a462 (patch)
tree9a949b5b5e4389d896ecb87c8b94e255d5553cda /bot/__main__.py
parentInitial commit. (diff)
parentRemove extra params to pepper (diff)
Merge branch 'deploy' of https://github.com/dfitzpatrick/hacktoberbot into 31-vote-for-favorite-monster
# Conflicts: # Pipfile
Diffstat (limited to '')
-rw-r--r--bot/__main__.py (renamed from bot/bot.py)9
1 files changed, 4 insertions, 5 deletions
diff --git a/bot/bot.py b/bot/__main__.py
index a40ed0d4..c40836c5 100644
--- a/bot/bot.py
+++ b/bot/__main__.py
@@ -1,10 +1,10 @@
+import logging
from os import environ
from pathlib import Path
-from sys import stderr
-from traceback import print_exc, format_exc
+from traceback import format_exc
from discord.ext import commands
-import logging
+
HACKTOBERBOT_TOKEN = environ.get('HACKTOBERBOT_TOKEN')
@@ -19,7 +19,6 @@ bot = commands.Bot(command_prefix=commands.when_mentioned_or(".", f"{ghost_unico
logging.info('Start loading extensions from ./cogs/')
-
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')]
@@ -36,4 +35,4 @@ logging.info(f'Spooky Launch Sequence Initiated...')
bot.run(HACKTOBERBOT_TOKEN)
-logging.info(f'HackBot has been slain!') \ No newline at end of file
+logging.info(f'HackBot has been slain!')