diff --git a/bot.rb b/bot.rb index 41d17f2..21022b9 100644 --- a/bot.rb +++ b/bot.rb @@ -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'