소스 검색

fix form and vote for pins

Kylie Jo Swistak 5 년 전
부모
커밋
594cfc1cd2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bot.rb

+ 1 - 1
bot.rb

@@ -1029,7 +1029,7 @@ bot.reaction_add do |event|
     when reactions[Emoji::LEFT]&.count.to_i > 1 then :left
     when reactions[Emoji::RIGHT]&.count.to_i > 1 then :right
     when reactions[Emoji::UNDO]&.count.to_i > 1 then :back
-    when reactions[Emoji::PIN]&.count.to_i > 1 then :pin
+    when reactions[Emoji::PIN]&.count.to_i > 0 then :pin
     when reactions.any? { |k,v| Emoji::NUMBERS.include? k } then :number
     end