Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aa-discordnotify

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aa-discordnotify

Forward Alliance Auth notifications to users on Discord.

  • 2.0.0
  • Source
  • PyPI
  • Socket score

Maintainers
1

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

  • Auth notifications appear instantly as DM on Discord
  • Notifications are colored according to their level (e.g. INFO = blue)
  • Can be restricted to notifications for superusers only (e.g. to keep track of errors)

Example

example

Installation

Step 1 - Check 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 installed and setup in Alliance Auth.

Step 2 - 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 3 - 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 4 - Finalize App installation

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

Step 5 - 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.

NameDescriptionDefault
DISCORDNOTIFY_ENABLEDSet this to False to disable this app temporarilyTrue
DISCORDPROXY_PORTPort used to communicate with Discord Proxy.50051
DISCORDPROXY_HOSTHostname used to communicate with Discord Proxy.localhost
DISCORDNOTIFY_MARK_AS_VIEWEDWhen enabled will mark all notifications as viewed that have been successfully submitted to DiscordFalse
DISCORDNOTIFY_SUPERUSER_ONLYWhen enabled only superusers will be get their notifications forwarded.False

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc