Skip to content
This repository
Browse code

Added !restart.

  • Loading branch information...
commit bfa694e28c750a9f45205406aad796dcce498a37 1 parent 21d1a4f
Blaž Hrastnik authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +6 0 commands/administration.rb
6 commands/administration.rb
@@ -47,4 +47,10 @@
47 47 # unfilter <phrase> - Unbans a specific command phrase.
48 48 Scarlet.hear (/unfilter (.+)/), :dev do
49 49 Scarlet::Command.filter.delete params[1].strip
  50 +end
  51 +
  52 +Scarlet.hear /restart/, :dev do
  53 + reply 'Restarting myself...'
  54 + server.send_cmd :quit, :quit => $config.irc_bot.quit
  55 + EM.add_timer(1) { server.unbind }
50 56 end

0 comments on commit bfa694e

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