Awesome IRC bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
864 B

#!/usr/bin/env python
.. module:: PressF
:synopsis: Press F to pay respects
.. moduleauthor:: Dave Pedu <>
from pyircbot.modulebase import ModuleBase, hook
from time import sleep
from threading import Thread
class Rejoin(ModuleBase):
def __init__(self, bot, moduleName):
ModuleBase.__init__(self, bot, moduleName)
try: ="services").pop()
except KeyError as ke:
raise Exception("No services service provider found") from ke
def kicked(self, msg, cmd):
channel, who = msg.args
if who ==
Thread(target=self.rejoin, args=(self.config.get("delay", 30), channel)).start()
def rejoin(self, delay, channel):