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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63b9e10985b6d4568ab10b40c5fdbe60e6a9f859215b56657e425ef71996d67 |
|
MD5 | e20877b5cf1347a32707cef1122866a3 |
|
BLAKE2b-256 | dd2c1416ea271825b6346e6a2f766c9deb732749504830fc31d06e7a8f302333 |
Close
Hashes for django_discord_integration-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b689b1c4bc4d397ee73da516a543fb7ba579f5d5dc75e157e05f6fdf25208e5c |
|
MD5 | b236c098ff2fd4df7ec27f2bc9b92479 |
|
BLAKE2b-256 | bbfb12e018890bdaefd60c39d7004215db04dde8c91e5a203315ae5113ed98c7 |