switch to typescript

This commit is contained in:
Matthieu Jolimaitre 2024-11-24 17:07:26 +01:00
parent 0c313f9f48
commit cdec693d39
8 changed files with 104 additions and 32 deletions

15
run-rotate Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/bash
set -e
cd "$(dirname "$(realpath "$0")")"
[ -f data/token ] || ( echo "[run-rotate] Must place a discord token in '$PWD/data/token'" && exit 1 )
token="$( cat data/token)"
status="$(cat data/status.txt | shuf -n 1)"
emote='feur:1243572228868673566'
echo "[run-rotate] Setting status to '$status'"
./src/discord-status-set.ts "$token" "$status" --emote "$emote"