Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- match /reload/, method: :reload, react_on: :private
- def reload(m)
- m.reply("brb")
- bot.quit
- #this one is cleaner but idk if it will reload completely
- #at_exit { bot.start }
- #more dirty but will probably reload everything
- #at_exit { exec "ruby /home/sean/dragon.rb" }
- at_exit { sleep(1) }
- exit
- end
Advertisement
Add Comment
Please, Sign In to add comment