discord-status/run
2024-11-23 16:16:42 +01:00

20 lines
463 B
Bash
Executable file

#!/usr/bin/bash
set -e
cd "$(dirname "$(realpath "$0")")"
[ -d repo ] || git clone https://github.com/RELIHR/Discord-Status-Changer.git repo
[ -d venv ] || python3 -m venv venv
[ -f token ] || echo "token goes here" > token
. ./venv/bin/activate
pip install requests colorama
cp emotes.txt repo/emojis.txt
cp status.txt repo/text.txt
cp config.json repo/config.json
sed -i "s/discord-account-token/$(cat token)/g" repo/config.json
cd repo
python3 main.py