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

def quit_initialize(bot, bang)
3 years ago
bot.message(with_text: "#{bang}Quit") do |event|
quit(bot, event)
end
end
def quit(bot, event)
if event.user.id == 185533351866662913
3 years ago
bot.send_message(event.channel.id, 'Bot is shutting down')
bot.stop
else
event.respond "You cannot quit this bot!"
3 years ago
end
end