Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raphaeldenni/newsbot

A bot to use the News API in Discord !
https://github.com/raphaeldenni/newsbot

discord discord-bot discord-py pycord pycord-bot python python-3 python3

Last synced: 17 days ago
JSON representation

A bot to use the News API in Discord !

Awesome Lists containing this project

README

        

# NewsBot

A bot to use the [News API]("https://newsapi.org/") 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]("https://newsapi.org/")

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)

```sh
poetry install
```

### Pip

```sh
pip install -r requirements.txt
```