Forgot to flake before pushing

This commit is contained in:
Siina Mashek 2022-04-24 03:25:27 +03:00
parent 9cfadac1b2
commit f792f3b862
3 changed files with 1 additions and 4 deletions

View File

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

View File

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

1
bot.py
View File

@ -17,4 +17,3 @@ app = Flask(__name__)
def respond(): def respond():
owncast.parse_webhook() owncast.parse_webhook()
return Response(status=200) return Response(status=200)