From 2e85819a1f155c0e098e8928a879b39d07e65048 Mon Sep 17 00:00:00 2001 From: Daniel Brown Date: Wed, 10 Oct 2018 09:13:57 -0500 Subject: Corrected linting errors. --- bot/__main__.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bot/__main__.py') 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!') -- cgit v1.2.3