summaryrefslogtreecommitdiff
path: root/demonetarisiert/__init__.py
diff options
context:
space:
mode:
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()