properly break from block

This commit is contained in:
Lera Elvoé 2022-09-18 03:08:59 +03:00
parent 8c520afafa
commit 96a4fe5751
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

2
bot.rb
View File

@ -7,7 +7,7 @@ EMOJI = '🔖'
TRIM_MESSAGE_LENGTH = 500
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
message_author = event.message.author
message_author_pfp = message_author.avatar_url 'png'