Skip to content

Gon3s/dl_discord_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot for debrid and download movies and series

A Bot discord to debrid and download movies and series with the command !download <url>

Setup

Bot requires Python 3 to run

Install dependencies

pip install -r requirements.txt

Setup config

DISCORD_TOKEN=your_discord_token
DISCORD_GUILD=your_discord_guild

ALLDEBRID_API_KEY=your_alldebrid_api_key

DOWNLOAD_PATH=your_download_path

WAWACITY_URL=https://www.wawacity.city/

How to run

The bot can be run with the following command: python bot.py

Create a service

Create a file called my_bot :

nano /etc/systemd/system/my_bot.service

Add this :

[Unit]
Description=My Python Discord Bot
After=multi-user.target

[Service]
WorkingDirectory={{path from the bot script}}
User={{ your user }}

ExecStart=/bin/bash -c "source venv/bin/activate && python bot.py" 

# This will restart your bot if your bot doesn't return a 0 exit code
Restart=on-failure

[Install]
WantedBy=multi-user.target

Reload systemctl deamon

systemctl daemon-reload

Command to start

systemctl start my_bot

Command to stop

systemctl stop my_bot

Command to restart

systemctl restart my_bot

Command to start when your server start

systemctl enable my_bot

Command to revoke that you would do

systemctl disable my_bot

Contribution

You can always pull request to this repo, if you report or fix a bug.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages