Skip to content

A bot to use the News API in Discord !

License

Notifications You must be signed in to change notification settings

raphaeldenni/NewsBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NewsBot

A bot to use the News API in Discord !

Requirements

The following modules are required:

  • py-cord (^2.4.1)
  • python-dotenv (^1.0.0)
  • requests (^2.31.0)

All of them are listed in pyproject.toml and requirements.txt

You also need to provide 2 variables in a .env file:

  • BOT_TOKEN : a Discord's bot token
  • NEWSAPI_KEY : an api key from News API

You can add a third one if your are in a dev environment:

  • DEBUG_GUILD: a debug guild ID

Installation

Don't forget to use Poetry integrated environments or venv with pip

Poetry (Recommended)

poetry install

Pip

pip install -r requirements.txt