diff options
author | romangraef <romangraef@loves.dicksinhisan.us> | 2018-11-03 18:21:43 +0100 |
---|---|---|
committer | romangraef <romangraef@loves.dicksinhisan.us> | 2018-11-03 18:21:43 +0100 |
commit | 5052d209791919139e12eefa1210caf540e66183 (patch) | |
tree | ffcb8a36a4a66602413dfd5656dd11373d18c7eb /demonetarisiert/__init__.py | |
download | twitch-demonetarisiert-1.0.0a0.tar.gz twitch-demonetarisiert-1.0.0a0.tar.bz2 twitch-demonetarisiert-1.0.0a0.zip |
Diffstat (limited to 'demonetarisiert/__init__.py')
-rw-r--r-- | demonetarisiert/__init__.py | 20 |
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() |