Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 !
- Host: GitHub
- URL: https://github.com/raphaeldenni/newsbot
- Owner: raphaeldenni
- License: apache-2.0
- Created: 2022-09-04T20:16:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T18:52:37.000Z (4 months ago)
- Last Synced: 2024-09-16T23:47:52.912Z (4 months ago)
- Topics: discord, discord-bot, discord-py, pycord, pycord-bot, python, python-3, python3
- Language: Python
- Homepage:
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```