Skip to main content

Forward Alliance Auth notifications to users on Discord

Project description

Discord Notify

Forward Alliance Auth notifications to users on Discord

release python django pipeline codecov license pre-commit Code style: black chat

Contents

Overview

This app automatically forwards Alliance Auth notifications to users on Discord.

Features

  • Aut notifications appear as DM on Discord
  • Notifications are colored according to level (e.g. INFO = blue)
  • Option to forward superuser's notifications only

Example

example

Installation

Preconditions

  1. Discord Notify is a plugin for Alliance Auth. If you don't have Alliance Auth running already, please install it first before proceeding. (see the official AA installation guide for details)

  2. Discord Notify needs Discord Proxy to function. Please make sure the server is up and running on your system, before continuing.

  3. Please also make sure you have the Discord service enabled in Alliance Auth.

Step 1 - Install app

Make sure you are in the virtual environment (venv) of your Alliance Auth installation. Then install the newest release from PyPI:

pip install aa-discordnotify

Step 2a - Configure Auth settings

Configure your Auth settings (local.py) as follows:

  • Add "discordnotify" to INSTALLED_APPS
  • Optional: Add additional settings if you want to change any defaults. See Settings for the full list.

Step 3 - Finalize App installation

Restart your supervisor services for Auth (no migration required).

Step 4 - Send test notification

To test that your installation was successful you can create a test notification to yourself by navigating to the relative route /discordnotify/test/ in your browser. The absolute URL depends on your Auth site. Example: For an Auth site with the URL https://auth.example.com the test URL would be: https://auth.example.com/discordnotify/test/.

When everything was setup correctly, you will receive a test notification on Discord.

Congratulations you are now ready to use Discord Notify!

Settings

Here is a list of available settings for this app. They can be configured by adding them to your AA settings file (local.py).

Note that all settings are optional and the app will use the documented default settings if they are not used.

Name Description Default
DISCORDNOTIFY_DISCORDPROXY_PORT Port used to communicate with Discord Proxy. 50051
DISCORDNOTIFY_SUPERUSER_ONLY When set to True, only superusers will be get their notifications forwarded. False

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aa-discordnotify-0.1.0b3.tar.gz (10.0 kB view details)

Uploaded Source

File details

Details for the file aa-discordnotify-0.1.0b3.tar.gz.

File metadata

  • Download URL: aa-discordnotify-0.1.0b3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for aa-discordnotify-0.1.0b3.tar.gz
Algorithm Hash digest
SHA256 4bc3348bb897114fc92ebf5e384961aaa97fb89025e1d06a341baefa02583a35
MD5 99599ed8609454a356d5cd512bea3f8e
BLAKE2b-256 d054e0d6bf7461b2d570445627ecf1886fe509d343b2d077b667e4dde8f6d641

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page