diff --git a/boots/admin_commands.py b/boots/admin_commands.py index a0b2512..d747d43 100644 --- a/boots/admin_commands.py +++ b/boots/admin_commands.py @@ -3,7 +3,6 @@ import re import functools import logging import asyncio -import robot import admin class AdminCmd: diff --git a/boots/boots.py b/boots/boots.py index 6f3fdb2..d119c62 100644 --- a/boots/boots.py +++ b/boots/boots.py @@ -5,8 +5,8 @@ import eightball import admin import admin_commands -format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' -logging.basicConfig(level=logging.DEBUG, format=format) +FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' +logging.basicConfig(level=logging.DEBUG, format=FORMAT) logger = logging.getLogger('boots') diff --git a/boots/eightball.py b/boots/eightball.py index 831a149..3f1c962 100644 --- a/boots/eightball.py +++ b/boots/eightball.py @@ -120,8 +120,10 @@ class EightBall: self.questions[compiled] = (wrapped, self.keyword_pattern) return func + logger = logging.getLogger("boots.eightball") + def is_question(phrase: str) -> bool: """ Method to check if a string is a question