Forgot to flake before pushing
This commit is contained in:
parent
9cfadac1b2
commit
f792f3b862
|
@ -1,4 +1,3 @@
|
||||||
import html
|
|
||||||
import random
|
import random
|
||||||
import requests
|
import requests
|
||||||
from requests.structures import CaseInsensitiveDict
|
from requests.structures import CaseInsensitiveDict
|
||||||
|
@ -63,7 +62,6 @@ def get_quote(num):
|
||||||
return quote.get(num)
|
return quote.get(num)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def process_chat(data):
|
def process_chat(data):
|
||||||
sender = data["user"]["displayName"]
|
sender = data["user"]["displayName"]
|
||||||
text = data["body"]
|
text = data["body"]
|
||||||
|
|
|
@ -50,7 +50,7 @@ class Quote:
|
||||||
return "{}. {}, {}".format(
|
return "{}. {}, {}".format(
|
||||||
num, text, datetime.strftime(timestamp, '%Y'))
|
num, text, datetime.strftime(timestamp, '%Y'))
|
||||||
|
|
||||||
def connect(self):
|
def __connect(self):
|
||||||
return sqlite3.connect("data/quote.db")
|
return sqlite3.connect("data/quote.db")
|
||||||
|
|
||||||
def __init_table(self):
|
def __init_table(self):
|
||||||
|
|
Loading…
Reference in New Issue