A Discourse plugin built specifically for aloha.pk, forked from https://github.com/barreeeiroo/discourse-discord-sync
This plugin runs a Discord bot to keep groups and members synced between the aloha.pk forum and Discord server.
This plugin depends on Discord OAuth2 to identify and link Discourse-Discord accounts. If you don't want to allow users to login with Discord, but you wish to keep linking account, check the solution to this topic.
This bot will sync all Discourse groups with Discord roles. It will automatically trigger an update when an user links their Discord account, user groups are changed or profile gets updated.
The !sync command, when used in the designated admin channel, will sync the Discord roles' colors and icons.
- Follow the standard guide at How to install a plugin? with this repository URL.
- Follow this guide to set up Login with Discord in your Discourse instance.
- In the Discord Developer portal, go to Bot, and add it to your server. Make sure you grant him the highest possible role.
- In Discourse, in Plugin Settings, set
discord sync token
with the Bot token that appears in the previous step.
discord sync enabled
: Whether or not to enable the integrationdiscord sync token
: Bot token from Discorddiscord sync prefix
: Prefix for commands (just!ping
by now)discord sync admin channel id
: Channel to post logging messages (nick changes, role changes, debug messages) and also the channel to run !syncdiscord sync public channel id
: Channel to post formatted role change embedded messagesdiscord sync role support url
: Support/info hyperlink in public channel embedded messagesdiscord sync message footer logo url
: Image url for icon in public channel embedded messagesdiscord sync username
: If true, it will sync all Discord server nicknames to their Discourse usernamediscord sync verified role
: Role to add to all users who have a Discourse accountdiscord sync safe roles
: List of roles that bot will ignore and will mark as manually granted in Discorddiscord sync disabled group
: Name of Discourse group that will disable members from being synceddiscord debug enabled
: Toggle debug messages to post in the admin channel
- Download the svg assets from font-awesome -> https://github.com/FortAwesome/Font-Awesome/tree/6.x/svgs
- Download and install ImageMagick -> https://imagemagick.org/script/download.php
- Run the follow cmd on the asset folder(s): magick mogrify -gravity center -scale "80x80" -extent "96x96" -alpha deactivate -negate -transparent black -background none -format png *.svg
- Drag the outputted pngs into and overwrite discord sync's icons directory