forked from yagich/potomark-bot-rb
add admin abuse pasta
This commit is contained in:
parent
e56aac740b
commit
e5d0af7431
6
bot.rb
6
bot.rb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user