https://github.com/velvox/nederland-alert.py
An unofficial opensource Discord bot that uses Dutch government API's to forward governement or Police issued notofication to Discord, in python.
https://github.com/velvox/nederland-alert.py
discord-py nederland nl-alert politie vermissingen
Last synced: about 2 months ago
JSON representation
An unofficial opensource Discord bot that uses Dutch government API's to forward governement or Police issued notofication to Discord, in python.
- Host: GitHub
- URL: https://github.com/velvox/nederland-alert.py
- Owner: Velvox
- License: gpl-3.0
- Created: 2025-01-10T20:33:23.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-17T09:44:49.000Z (11 months ago)
- Last Synced: 2025-01-19T23:44:26.578Z (11 months ago)
- Topics: discord-py, nederland, nl-alert, politie, vermissingen
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nederland-Alert.py
An unofficial open-source Discord bot that uses Dutch government API's to forward governement or Police issued notofication to Discord, in python.
## Required configuration
`.env` the environment file is critical and should contain the following.
```r
# Bot settings
NL_ALERT_IMAGE_URL = ""
# Bot configuration
BOT_TOKEN = ''
POLITIE_V5_API_VERMIST = "https://api.politie.nl/v5/vermist"
AMBER_ALERT_API = "https://services.burgernet.nl/landactiehost/api/v1/alerts"
NL_ALERT_API = "https://api.public-warning.app/api/v1/providers/nl-alert/alerts"
# MySQL configuration
MYSQLUSER = ''
MYSQLPASSOWRD = ''
MYSQLDATABASE = ''
MYSQLHOST = ''
MYSQLPORT = ''
MYSQLCACERTPATH = ''
```
The code expects a MySQL database with a TLS secured connection, if you run this localy you may want to remove or comment out in the .env file `MYSQLCACERTPATH` and remove the python code bellow.
```py
'ssl': {
'ca': f'{MYSQLCACERTPATH}',
}
```
I will not write a complete setup guide because I do not intent that everyone is going run this bot for them selves. I posted this out of transparency. [Click here to invite the application to your Discord server or add it to your 'personal' applications](https://discord.com/oauth2/authorize?client_id=1325457566834364557)