From e0b256375e33a40ce358676496c1a47675a022eb Mon Sep 17 00:00:00 2001
From: dnns01 <git@dnns01.de>
Date: Sat, 18 Dec 2021 13:17:12 +0100
Subject: [PATCH] Bump twitchio to 2.1.4

---
 haugebot_twitch/haugebot.py  | 25 ++++++++++++-------------
 haugebot_twitch/wordcloud.py |  2 +-
 requirements.txt             |  3 ++-
 3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/haugebot_twitch/haugebot.py b/haugebot_twitch/haugebot.py
index b5fb0ec..c181428 100644
--- a/haugebot_twitch/haugebot.py
+++ b/haugebot_twitch/haugebot.py
@@ -1,10 +1,9 @@
 import os
-import sqlite3
 from abc import ABC
 
 from dotenv import load_dotenv
-from twitchio.ext.commands import Context, Bot
 from twitchio import Channel, Message
+from twitchio.ext.commands import Context, Bot
 
 from vote_cog import VoteCog
 from wusstest_du_schon import WusstestDuSchon
@@ -39,9 +38,9 @@ class HaugeBot(Bot, ABC):
         print('Logged in')
 
         if wusstest_du_schon := self.cogs.get("WusstestDuSchon"):
-            wusstest_du_schon.loop.start(wusstest_du_schon)
+            wusstest_du_schon.loop.start()
         if vote_cog := self.cogs.get("VoteCog"):
-            vote_cog.manage_vote.start(vote_cog)
+            vote_cog.manage_vote.start()
 
     @staticmethod
     def get_percentage(part, total):
@@ -60,15 +59,15 @@ class HaugeBot(Bot, ABC):
     async def stream(self):
         return await self._http.get_streams(user_logins=[self.CHANNEL])
 
-    @staticmethod
-    def get_setting(key):
-        conn = sqlite3.connect("db.sqlite3")
-
-        c = conn.cursor()
-        c.execute('SELECT value from haugebot_web_setting where key = ?', (key,))
-        value = c.fetchone()[0]
-        conn.close()
-        return value
+    # @staticmethod
+    # def get_setting(key):
+    #     conn = sqlite3.connect("db.sqlite3")
+    #
+    #     c = conn.cursor()
+    #     c.execute('SELECT value from haugebot_web_setting where key = ?', (key,))
+    #     value = c.fetchone()[0]
+    #     conn.close()
+    #     return value
 
 
 load_dotenv()
diff --git a/haugebot_twitch/wordcloud.py b/haugebot_twitch/wordcloud.py
index 5bd037e..d37f22b 100644
--- a/haugebot_twitch/wordcloud.py
+++ b/haugebot_twitch/wordcloud.py
@@ -21,7 +21,7 @@ class Wordcloud(commands.Cog):
         self.ws_url = os.getenv("WORDCLOUD_WS_URL")
         self.secret = os.getenv("WORDCLOUD_SECRET")
         self.ws = None
-        self.wordcloud_routine.start(self)
+        self.wordcloud_routine.start()
 
     @routines.routine(seconds=2)
     async def wordcloud_routine(self):
diff --git a/requirements.txt b/requirements.txt
index 88f219b..324328a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -22,6 +22,7 @@ hiredis==2.0.0
 hyperlink==21.0.0
 idna==2.10
 incremental==21.3.0
+iso8601==1.0.2
 kiwisolver==1.3.1
 matplotlib==3.4.2
 msgpack==1.0.2
@@ -42,7 +43,7 @@ service-identity==21.1.0
 six==1.16.0
 sqlparse==0.4.2
 Twisted==21.2.0
-twitchio==2.0.0b7
+twitchio==2.1.4
 txaio==21.2.1
 typing-extensions==3.7.4.3
 urllib3==1.26.5
-- 
GitLab