Fix amount
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julius 2024-10-17 16:50:07 +02:00
parent 7aa51e4223
commit f2716b35f2
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2

View file

@ -65,7 +65,7 @@ async fn handle_react(c: Context, r: Reaction) -> Result<(), serenity::Error> {
.map(|r| r.count) .map(|r| r.count)
.unwrap_or_default(); .unwrap_or_default();
println!("Pin count: {}", count); println!("Pin count: {}", count);
if count >= 1 { if count >= 5 {
msg.pin(&c).await?; msg.pin(&c).await?;
} else if count < 3 { } else if count < 3 {
msg.unpin(&c).await?; msg.unpin(&c).await?;