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 functools
|
||||||
import logging
|
import logging
|
||||||
import asyncio
|
import asyncio
|
||||||
import robot
|
|
||||||
import admin
|
import admin
|
||||||
|
|
||||||
class AdminCmd:
|
class AdminCmd:
|
||||||
|
|
|
@ -5,8 +5,8 @@ import eightball
|
||||||
import admin
|
import admin
|
||||||
import admin_commands
|
import admin_commands
|
||||||
|
|
||||||
format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
||||||
logging.basicConfig(level=logging.DEBUG, format=format)
|
logging.basicConfig(level=logging.DEBUG, format=FORMAT)
|
||||||
logger = logging.getLogger('boots')
|
logger = logging.getLogger('boots')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -120,8 +120,10 @@ class EightBall:
|
||||||
self.questions[compiled] = (wrapped, self.keyword_pattern)
|
self.questions[compiled] = (wrapped, self.keyword_pattern)
|
||||||
return func
|
return func
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger("boots.eightball")
|
logger = logging.getLogger("boots.eightball")
|
||||||
|
|
||||||
|
|
||||||
def is_question(phrase: str) -> bool:
|
def is_question(phrase: str) -> bool:
|
||||||
"""
|
"""
|
||||||
Method to check if a string is a question
|
Method to check if a string is a question
|
||||||
|
|
Loading…
Reference in a new issue