summaryrefslogtreecommitdiff
path: root/demonetarisiert/__init__.py
diff options
context:
space:
mode:
authorromangraef <romangraef@loves.dicksinhisan.us>2018-11-03 18:21:43 +0100
committerromangraef <romangraef@loves.dicksinhisan.us>2018-11-03 18:21:43 +0100
commit5052d209791919139e12eefa1210caf540e66183 (patch)
treeffcb8a36a4a66602413dfd5656dd11373d18c7eb /demonetarisiert/__init__.py
downloadtwitch-demonetarisiert-master.tar.gz
twitch-demonetarisiert-master.tar.bz2
twitch-demonetarisiert-master.zip
Diffstat (limited to 'demonetarisiert/__init__.py')
-rw-r--r--demonetarisiert/__init__.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/demonetarisiert/__init__.py b/demonetarisiert/__init__.py
new file mode 100644
index 0000000..7e203c6
--- /dev/null
+++ b/demonetarisiert/__init__.py
@@ -0,0 +1,20 @@
+from threading import Thread
+from time import sleep
+
+from .config import config
+from .irc import Client
+
+connection = Client()
+
+
+def send_msg():
+ connection.ready.wait()
+ while True:
+ connection.connection.privmsg("#" + config.channel, "#familyfriendly, bitte!")
+ sleep(300)
+
+
+def main():
+ t = Thread(target=send_msg)
+ t.start()
+ connection.setup()