aboutsummaryrefslogtreecommitdiff
path: root/bot.sh
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-22 01:14:40 +0200
committernea <nea@nea.moe>2023-08-22 01:14:40 +0200
commit9ccfdbf52643982c523d0fa0e34dd68599807f45 (patch)
tree76fbb03c9ab09b67fdd4916f29fd7bd960f34adb /bot.sh
parent10f8c0f4490ec6e97d0f5426e95abb22efed4210 (diff)
downloadprime-number-discord-bot-master.tar.gz
prime-number-discord-bot-master.tar.bz2
prime-number-discord-bot-master.zip
Remove testing prime checkHEADmaster
Diffstat (limited to 'bot.sh')
-rwxr-xr-xbot.sh2
1 files changed, 1 insertions, 1 deletions
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