summaryrefslogtreecommitdiff
path: root/pbot-say
blob: 06bb1bda3d9e9addaf89ee64837ab36a74a72b37 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

# pbot will postpone delivery of this message until $DELIVERY_TS
readonly DELAY_SECS=0
readonly DELIVERY_TS=$(( $(date +%s) + ${DELAY_SECS} ))
readonly TARGET_CHANNEL='#parabola'
readonly IPC_QUEUE_FILE=/var/lib/pbot/ipc-message-queue # ASSERT: per bot_settings.sh


echo "${DELIVERY_TS} ${TARGET_CHANNEL} $*" >> ${IPC_QUEUE_FILE}