add admin abuse pasta

This commit is contained in:
Lera Elvoé 2023-05-19 14:13:32 +03:00
parent e56aac740b
commit e5d0af7431
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

6
bot.rb
View File

@ -6,6 +6,8 @@ bot = Discordrb::Bot.new token: ENV['DISCORD_TOKEN']
BOOKMARK_EMOJI = '🔖' BOOKMARK_EMOJI = '🔖'
PIN_EMOJI = '📌' PIN_EMOJI = '📌'
ADMIN_PASTA = 'Thats not how it works, thats an abuse of power and if you keep doing that you will quickly find yourself no longer a moderator at some point.'
TRIM_MESSAGE_LENGTH = 500 TRIM_MESSAGE_LENGTH = 500
$sentence = {} $sentence = {}
@ -80,4 +82,8 @@ bot.message_edit(in: Integer(ENV['SENTENCE_CHANNEL'])) do |event|
$sentence[event.message.id] = event.message.content $sentence[event.message.id] = event.message.content
end end
bot.message(with_text: '!abuse') do |event|
event << ADMIN_PASTA
end
bot.run bot.run