summaryrefslogtreecommitdiff
path: root/demonetarisiert/__init__.py
blob: 7e203c6876a9a7330040499d9d61e81267d4414a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()