diff options
author | nea <nea@nea.moe> | 2023-08-22 01:14:40 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-08-22 01:14:40 +0200 |
commit | 9ccfdbf52643982c523d0fa0e34dd68599807f45 (patch) | |
tree | 76fbb03c9ab09b67fdd4916f29fd7bd960f34adb /bot.sh | |
parent | 10f8c0f4490ec6e97d0f5426e95abb22efed4210 (diff) | |
download | prime-number-discord-bot-master.tar.gz prime-number-discord-bot-master.tar.bz2 prime-number-discord-bot-master.zip |
Diffstat (limited to 'bot.sh')
-rwxr-xr-x | bot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |