Added "reboot" command

This commit is contained in:
takumi091111
2017-10-23 20:17:12 +09:00
parent 59ee850104
commit 6f0b663d84

View File

@ -31,6 +31,12 @@ module Bot
nil
end
command(:reboot, usage: 'reboot', description: 'Botを再起動') do |event|
next unless event.author == '153106386585255936'
exec 'ruby main.rb'
nil
end
command(:shutdown, usage: 'shutdown', description: 'Botを終了') do |event|
next unless event.author == '153106386585255936'
exit(0)