From f792f3b8624ad9268cf4ff4702997145c8660028 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Sun, 24 Apr 2022 03:25:27 +0300 Subject: [PATCH] Forgot to flake before pushing --- ameliabot/owncast.py | 2 -- ameliabot/quote.py | 2 +- bot.py | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ameliabot/owncast.py b/ameliabot/owncast.py index 5449649..0dc70cc 100644 --- a/ameliabot/owncast.py +++ b/ameliabot/owncast.py @@ -1,4 +1,3 @@ -import html import random import requests from requests.structures import CaseInsensitiveDict @@ -63,7 +62,6 @@ def get_quote(num): return quote.get(num) - def process_chat(data): sender = data["user"]["displayName"] text = data["body"] diff --git a/ameliabot/quote.py b/ameliabot/quote.py index 812f661..22b4de9 100644 --- a/ameliabot/quote.py +++ b/ameliabot/quote.py @@ -50,7 +50,7 @@ class Quote: return "{}. {}, {}".format( num, text, datetime.strftime(timestamp, '%Y')) - def connect(self): + def __connect(self): return sqlite3.connect("data/quote.db") def __init_table(self): diff --git a/bot.py b/bot.py index dc90b0c..a894253 100644 --- a/bot.py +++ b/bot.py @@ -17,4 +17,3 @@ app = Flask(__name__) def respond(): owncast.parse_webhook() return Response(status=200) -