Skip to content

Jobin-Nelson/discord_chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Chatbot

A basic bot to fetch torrent links. I’ve also included a script to get_links straight from the command line.

Installation

  • First, you need to create a virtual environment, this part is optional, although I do recommend it
python -m venv venv
  • Then make sure that all required libraries are downloaded
pip install -r requirements.txt
  • Run the below code to download the necessary webdrivers
playwright install
  • Store the bot token in a .env file if you are running the bot locally
  • If you are running the bot from replit you can use the secret environment variable to store the token with key set to ‘TOKEN’
  • You can also use uptime robot to constantly ping the flask server every 5 minutes to keep the bot running 24/7
  • Search for any movie with .search
  • You can get links from the command line by running, the number of links is optional
python get_links.py "movie name" [number of links]

Tools: discord.py, playwright, bs4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages