Discord integration for Django, supporting error reporting via webhooks.
Project description
Django Discord Integration
Discord integration for Django, supporting error reporting via webhooks.
This app comes with two message handlers: DiscordMessageHandler
and SimpleDiscordMessageHandler
. DiscordMessageHandler
sends all the information related to the message, such as a traceback if there is one, while the SimpleDiscordMessageHandler
only sends the title.
Installation
$ pip install django-discord-integration
In your settings.py
, add the following:
INSTALLED_APPS = (
'discord_integration',
'solo',
...
)
Next, migrate the database:
$ python manage.py migrate
Finally, set the Discord webhook URL in the Django admin, as well as the bot username and avatar URL if necessary.
Sample Logging Configuration
LOGGING = {
'handlers': {
'discord_integration': {
'level': 'ERROR',
'class': 'discord_integration.log.DiscordMessageHandler',
},
},
'loggers': {
'handlers': ['discord_integration'],
},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-discord-integration-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14b9995e3c8db61c4a106087fd7b2b089d975deeba1417b2cf6dd1e7a1a3e7d6 |
|
MD5 | 5debbc4da328e68a90df74cedda1a002 |
|
BLAKE2b-256 | 75f5a2e084548eff4c2fb966ff66748c5d1d94eff3026bd896a14b59c57a012c |
Close
Hashes for django_discord_integration-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04381bfd50572ffd078f53d127106ad93b7472c5d6c7bb5a10a45ce3013e8e46 |
|
MD5 | 920abd85ee167a954db9a15bf10abe19 |
|
BLAKE2b-256 | e030eb6f2c4e23e4ff1d7e55e05154fe32819a15a3ca55889e7422f121aad9b8 |