8c6ab17e57
facilitate things like !set and !channelset without using the events system
9 lines
294 B
Python
9 lines
294 B
Python
|
|
|
|
class Module(object):
|
|
def __init__(self, bot, events, exports):
|
|
events.on("received").on("invite").hook(self.on_invite)
|
|
|
|
def on_invite(self, event):
|
|
if event["server"].get_setting("accept-invites", True):
|
|
event["server"].send_join(event["target_channel"])
|