Installation - lushdog/discord-qbit GitHub Wiki
Installtion (docker)
config.json
, then put your token and qbittorrent infomation in.
Create config file {
"server1": {
"QBIT_HOST": "127.0.0.1",
"QBIT_PORT": "8080",
"QBIT_USERNAME": "admin",
"QBIT_PASSWORD": "adminadmin"
},
"server2": {
"QBIT_HOST": "127.0.0.1",
"QBIT_PORT": "8080",
"QBIT_USERNAME": "admin",
"QBIT_PASSWORD": "adminadmin"
},
"clientToken": ""
}
yourconfigfolder
is the folder which config.json in.
docker run --name discord-qbit -d -v /yourconfigfolder:/config trancelife/discord-qbit
Logs
docker logs discord-qbit -f
Installation (pm2)
-
Install nodejs
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
source ~/.profile
nvm install stable
npm install pm2 -g
-
Clone Code
git clone https://github.com/lushdog/discord-qbit.git
cd discord-qbit
npm install
-
Configuration
cp config.example.json config.json
Then edit the config.json, add your qbittorrent info and discord bot token.
-
Run
pm2 start index.js --name discord-qbit
-
Stop
pm2 stop discord-qbit
-
Restart
pm2 restart discord-qbit