add run script

This commit is contained in:
JOLIMAITRE Matthieu 2024-04-29 11:22:44 +02:00
parent da121d6e09
commit 05654189c9

9
run.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
set -e
cd "$(dirname "$(realpath "$0")")"
if ! [ -f ./token ]
then echo "ERROR : Needs discord API token in ./token" && exit
fi
./src/bot.ts ./token