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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b47fe5521e55616bf933c95bb294f37452b9734c0fb51cfdc04396e55fedf50 |
|
MD5 | 27a9a198934b2b42f628ba086ae036b1 |
|
BLAKE2b-256 | a0aca0e548c04c7425957b909bf9c073bafb5b6fb820c92d65d4ca06c70e0898 |
Close
Hashes for django_discord_integration-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5613e2459b4f35d04e47357896d0e4e2bb22497abf72958adbd153cd4adabc47 |
|
MD5 | 6a4566b49d0de3a9fc557c587390ec3b |
|
BLAKE2b-256 | e27647d44c56f9da1702bb047a1ba7fe44e804c5c56dcac03a8d9d53391c675a |