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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec58611f752b4e5072cd599ed05b0f3df5513d5226333a750ccea21420f52e62 |
|
MD5 | 4f20bade0d39d7da65fcc0ecff3d72ea |
|
BLAKE2b-256 | 842d9f712f360e8e940aa2ba4908d130bd520e2e4058a5dfada4a6610ca05079 |
Close
Hashes for django_discord_integration-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae7237d46ef803d4063a8d17a0d326bc5a971ba4f87c1813668355f2fca6a1eb |
|
MD5 | a1affa1f4cad29ef1a54a5ffd6bc21ee |
|
BLAKE2b-256 | 02ce259fc2bedf0d3cdcd6d0e01fb2c84703b3b3285d177f837a993982dd4010 |