bitbot-3.11-fork/modules/accept_invite.py
2016-03-29 12:56:58 +01:00

9 lines
226 B
Python

class Module(object):
def __init__(self, bot):
bot.events.on("received").on("invite").hook(
self.on_invite)
def on_invite(self, event):
event["server"].send_join(event["target_channel"])