Skip to content

Commit 4ac99ed

Browse files
committed
WiP
1 parent b483528 commit 4ac99ed

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

hackerbot.rb

+16
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,22 @@ def read_bots
301301
end
302302
m.reply bots[bot_name]['messages']['repeat'].sample
303303
end
304+
305+
on :connect do |m|
306+
# User("my_master").monitor
307+
Print.debug m.to_s
308+
309+
310+
m.reply 'Test!'
311+
end
312+
#
313+
# def on_online(m, user)
314+
# user.send "Hello master"
315+
# end
316+
#
317+
# def on_offline(m, user)
318+
# @bot.loggers.info "I miss my master :("
319+
# end
304320
end
305321
end
306322
end

0 commit comments

Comments
 (0)