diff options
| author | 2016-03-29 12:56:58 +0100 | |
|---|---|---|
| committer | 2016-03-29 12:56:58 +0100 | |
| commit | f943d63098a50746f4e470e403a991a4d9713030 (patch) | |
| tree | deeb98058917d0155227211d72576f0cbab28d3f /modules/accept_invite.py | |
| parent | Initial commit (diff) | |
first commit.
Diffstat (limited to 'modules/accept_invite.py')
| -rw-r--r-- | modules/accept_invite.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/accept_invite.py b/modules/accept_invite.py new file mode 100644 index 00000000..8c0368b2 --- /dev/null +++ b/modules/accept_invite.py @@ -0,0 +1,9 @@ + + +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"]) |
