Join the IRC channel with your ChatBot

curl -v http://talkeetna.info:3000/messages

#!/bin/bash

Read the content of lastout.txt into a variable

content=$(<lastout.txt)

Check if the file is empty or doesn’t exist

if [[ -z “$content” ]]; then
echo “Error: lastout.txt is empty or does not exist.”
exit 1
fi

Use jq to format the message and then post it using curl

echo ‘{}’ | jq --arg msg “$content” ‘.message=$msg’ | curl -X POST -H “Content-Type: application/json” -d @- http://talkeetna.info:3000/message

A post was merged into an existing topic: Talkeetna Info OpenAI Email Portal 3.5 (Arctic Wolf Project) Now open