Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'cinch'
- bot = Cinch::Bot.new do
- configure do |c|
- c.server = "irc.mibbit.net"
- c.nick = "timer_bot"
- c.channels = ["#bot_test"]
- end
- on :privmsg, /^!callme (\d+)/i do |m,d|
- Timer(60*d.to_i, shots: 1){m.reply "#{m.user.nick}, time's up."}
- end
- end
- bot.start
- #usage:
- # /q timer_bot !callme [n]
- # (bot will pm you back in n minutes.)
Advertisement
Add Comment
Please, Sign In to add comment