Jump to content

Udvidelse:Discord

From mediawiki.org
This page is a translated version of the page Extension:Discord and the translation is 69% complete.
Outdated translations are marked like this.
MediaWiki extensions manual
Discord
Release status: stabil
Implementation User interface, Notify
Beskrivelse MediaWiki udvidelse der sender notifikationer til Discord.
Forfatter(e) Jayden Bailey (Jaydenkierandiskussion)
Latest version 1.0.13 (2023-05-19)
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.31+
Database changes Nej
Licens MIT License
Download
Eksempel https://runescape.wiki
  • $wgDiscordNoBots
  • $wgDiscordDisabledHooks
  • $wgDiscordSuppressPreviews
  • $wgDiscordNoMinor
  • $wgDiscordDisabledNS
  • $wgDiscordEmojis
  • $wgDiscordNoNull
  • $wgDiscordUseFileGetContents
  • $wgDiscordWebhookURL
  • $wgDiscordUseEmojis
  • $wgDiscordDisabledUsers
  • $wgDiscordPrependTimestamp
  • $wgDiscordMaxCharsUsernames
Translate the Discord extension

Discord udvidelsen sender notifikationer til et Discord webhook (eller flere) fra MediaWiki. When a certain event occurs on your MediaWiki wiki, such as recent changes and other log events, they can be sent as a message to a channel on a Discord server using a webhook.

This extension requires the PHP cURL extension to be installed on your web server, which on Linux is probably as simple as running sudo apt install php-curl -y.

Live-eksempel: https://runescape.wiki (https://discord.gg/runescapewiki)

Installation

  • Download and place the file(s) in a directory called Discord in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Discord' );
    // List webhook URLs to send notifications to (string or array containing strings)
    $wgDiscordWebhookURL = [ "" ];
    
  • Yes DoneNavigate to Special:Version on your wiki to verify that the extension is successfully installed.

Konfigurationsparametre

Se README

Se også