aboutsummaryrefslogtreecommitdiff
path: root/modules/join.py
diff options
context:
space:
mode:
authorGravatar jesopo2016-03-29 12:56:58 +0100
committerGravatar jesopo2016-03-29 12:56:58 +0100
commitf943d63098a50746f4e470e403a991a4d9713030 (patch)
treedeeb98058917d0155227211d72576f0cbab28d3f /modules/join.py
parentInitial commit (diff)
first commit.
Diffstat (limited to 'modules/join.py')
-rw-r--r--modules/join.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/join.py b/modules/join.py
new file mode 100644
index 00000000..3a95d1c7
--- /dev/null
+++ b/modules/join.py
@@ -0,0 +1,8 @@
+
+
+class Module(object):
+ def __init__(self, bot):
+ bot.events.on("received").on("numeric").on("001").hook(self.do_join)
+
+ def do_join(self, event):
+ event["server"].send_join("#bitbot")