diff options
Diffstat (limited to 'bot/__main__.py')
-rw-r--r-- | bot/__main__.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index a40ed0d4..c40836c5 100644 --- a/bot/__main__.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!') |