switch to typescript
This commit is contained in:
parent
0c313f9f48
commit
cdec693d39
8 changed files with 104 additions and 32 deletions
15
run-rotate
Executable file
15
run-rotate
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue