From 96a4fe575173d07c5b9ee3ad1c604951504d8338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Sun, 18 Sep 2022 03:08:59 +0300 Subject: [PATCH] properly break from block --- bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'