Jump to content

Extension:DecentDiscordFeed

From mediawiki.org
MediaWiki extensions manual
DecentDiscordFeed
Release status: beta
Implementation Notify
Description Extremely simple recent changes to Discord webhook extension
Author(s) Chlod Alejandro (Chlodtalk)
Compatibility policy Master maintains backward compatibility.
MediaWiki 1.41+
Database changes No
License GNU General Public License 2.0 or later
Download

DecentDiscordFeed is another extension aimed at sending recent changes to Discord. It works by using Discord webhooks, and sends an message with an embed including details for every recent change.

Embeds are modeled after the recent changes messages sent by the WikiBot Discord bot.

Barely any customizability options as of now. Meant to be used in small-scale wikis.

Installation

[edit]
  • Download and place the file(s) in a directory called DecentDiscordFeed in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'DecentDiscordFeed' );
    // The webhook to send recent changes to
    $wgDecentDiscordFeedWebhook = "https://discord.com/api/webhooks/...";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

[edit]
Configuration settings (defaults defined in extension.json)
Parameter Default Comment
$wgDecentDiscordFeedWebhook null The webhook to connect to.
$wgDecentDiscordFeedLogIcon "https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/OOjs_UI_icon_information-progressive.svg/600px-OOjs_UI_icon_information-progressive.svg.png" The icon to use for log events.
$wgDecentDiscordFeedLogColor 0x3066CD The color to use for log events.
$wgDecentDiscordFeedEditAddIcon "https://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/MobileFrontend_bytes-added.svg/512px-MobileFrontend_bytes-added.svg.png" The icon to use for edits with added bytes.
$wgDecentDiscordFeedEditAddColor 0x00AF89 The color to use for edits with added bytes.
$wgDecentDiscordFeedEditRemoveIcon "https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/MobileFrontend_bytes-removed.svg/512px-MobileFrontend_bytes-removed.svg.png" The icon to use for edits with removed bytes.
$wgDecentDiscordFeedEditRemoveColor 0xDD3333 The color to use for edits with removed bytes.
$wgDecentDiscordFeedEditNeutralIcon "https://upload.wikimedia.org/wikipedia/commons/thumb/2/25/MobileFrontend_bytes-neutral.svg/512px-MobileFrontend_bytes-neutral.svg.png" The icon to use for edits with no change in bytes.
$wgDecentDiscordFeedEditNeutralColor 0x72777D The color to use for edits with no change in bytes.
$wgDecentDiscordFeedShowLogParameters true Whether to show log parameters as part of log events.

See also

[edit]