forked from yagich/potomark-bot-rb
properly break from block
This commit is contained in:
parent
8c520afafa
commit
96a4fe5751
2
bot.rb
2
bot.rb
@ -7,7 +7,7 @@ EMOJI = '🔖'
|
|||||||
TRIM_MESSAGE_LENGTH = 500
|
TRIM_MESSAGE_LENGTH = 500
|
||||||
|
|
||||||
bot.reaction_add do |event|
|
bot.reaction_add do |event|
|
||||||
return nil unless event.emoji.name == EMOJI
|
next unless event.emoji.name == EMOJI
|
||||||
# extract data of the message's author
|
# extract data of the message's author
|
||||||
message_author = event.message.author
|
message_author = event.message.author
|
||||||
message_author_pfp = message_author.avatar_url 'png'
|
message_author_pfp = message_author.avatar_url 'png'
|
||||||
|
Loading…
Reference in New Issue
Block a user