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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2188dcf7f61acb65676fc5e687aa13b9dcd67dccf2d63ba4bea1627c2450d95 |
|
MD5 | 42d51962d1dc456cd1212d9a8ccf0f81 |
|
BLAKE2b-256 | cd0a7ea2a0e0f99ce145a0aa15d98c14c4b8ba161a9c9f52f33134d4d4101af2 |
Close
Hashes for django_discord_integration-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4787e4fd8ca7e50f6b410084bb1e8b0a8fc2fc2a08489a93e658f2362463191b |
|
MD5 | 8ce9470a369eeb2dfbab38f8d6e1794a |
|
BLAKE2b-256 | 00a371d7006d652716a0803db49a577a50b8b2bac528a7c46beb798ce302c51b |