You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
301 B
Ruby
14 lines
301 B
Ruby
def quit_initialize(bot, bang)
|
|
bot.message(with_text: "#{bang}Quit") do |event|
|
|
quit(bot, event)
|
|
end
|
|
end
|
|
|
|
def quit(bot, event)
|
|
if event.user.id == 185533351866662913
|
|
bot.send_message(event.channel.id, 'Bot is shutting down')
|
|
bot.stop
|
|
else
|
|
event.respond "You cannot quit this bot!"
|
|
end
|
|
end |