From 9ccfdbf52643982c523d0fa0e34dd68599807f45 Mon Sep 17 00:00:00 2001 From: nea Date: Tue, 22 Aug 2023 01:14:40 +0200 Subject: Remove testing prime check --- bot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.sh b/bot.sh index f135bd4..e3367ae 100755 --- a/bot.sh +++ b/bot.sh @@ -91,7 +91,7 @@ dispatch() { if [[ $total_received -eq $chunk_count ]]; then total_member_count=$(cat $nonce/* | paste -sd+ - | bc) dbg "we are done for now. total members: $total_member_count" - if is_prime $total_member_count||true; then + if is_prime $total_member_count; then dbg "prime number woohoooo sending message to $ANNOUNCEMENT" curl -X POST -H "Authorization: Bot $TOKEN" https://discord.com/api/v10/channels/$ANNOUNCEMENT/messages -F payload_json='{"content": "WOOOO BABY A PRIME NUMBER!! WE ARE NOW '$total_member_count' MEMBERS!!!! WOOO THATS WHAT IVE BEEN WAITING FOR"}' >/dev/null 2>/dev/null fi -- cgit