mirror of
https://github.com/mii443/rbot.git
synced 2025-08-22 15:45:30 +00:00
Added "reboot" command
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user