Compare commits

..

No commits in common. "c66178451a40b4af273698337cbf7eeef91c9eb4" and "89a36914dbbb615acc9639378087ef1bdd7da91f" have entirely different histories.

4
bot.rb
View File

@ -35,7 +35,7 @@ bot.reaction_add do |event|
end
if(event.emoji.name == PIN_EMOJI)
event.message.pin unless event.message.reactions.include? PIN_EMOJI
event.message.pin
end
nil # `event` is of type Respondable, so the return line of the block needs to be nil to prevent the bot sending something in the chhannel the reaction occured.
@ -43,7 +43,7 @@ end
bot.reaction_remove do |event|
next unless event.emoji.name == PIN_EMOJI
event.message.unpin unless event.message.reactions.include? PIN_EMOJI
event.message.unpin
nil
end