PEP8 and various other fixes.
This commit is contained in:
parent
b464d07340
commit
39ea93c632
3 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,6 @@ import re
|
|||
import functools
|
||||
import logging
|
||||
import asyncio
|
||||
import robot
|
||||
import admin
|
||||
|
||||
class AdminCmd:
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue