PEP8 and various other fixes.

This commit is contained in:
Elijah Lazkani 2017-09-10 21:35:38 -04:00
parent b464d07340
commit 39ea93c632
3 changed files with 4 additions and 3 deletions

View file

@ -3,7 +3,6 @@ import re
import functools
import logging
import asyncio
import robot
import admin
class AdminCmd:

View file

@ -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')

View file

@ -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