Skip to content
Browse files

Added !restart.

  • Loading branch information...
1 parent 21d1a4f commit bfa694e28c750a9f45205406aad796dcce498a37 @archSeer committed May 20, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 commands/administration.rb
View
6 commands/administration.rb
@@ -47,4 +47,10 @@
# unfilter <phrase> - Unbans a specific command phrase.
Scarlet.hear (/unfilter (.+)/), :dev do
Scarlet::Command.filter.delete params[1].strip
+end
+
+Scarlet.hear /restart/, :dev do
+ reply 'Restarting myself...'
+ server.send_cmd :quit, :quit => $config.irc_bot.quit
+ EM.add_timer(1) { server.unbind }
end

0 comments on commit bfa694e

Please sign in to comment.
Something went wrong with that request. Please try again.