Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:DiscordNotifications

From mediawiki.org
Translate this page
Languages:
MediaWiki extensions manual
Discord Notifications
Release status: stable
ImplementationUser interface, Notify
DescriptionSends notifications of actions in MediaWiki like adding, removing or deleting an article into Discord channel
Author(s)Aleksi Postari (kulttuuritalk)
Maintainer(s)Universal Omegatalk
Latest version3.1.0 (2025-08-16)
MediaWiki1.43+
PHP8.1+
Database changesNo
LicenseGNU General Public License 3.0 or later
Download

  • $wgDiscordIncomingWebhookUrl
  • $wgDiscordFromName
  • $wgDiscordSendMethod
  • $wgDiscordNotificationWikiUrl
  • $wgDiscordNotificationWikiUrlEnding
Translate the DiscordNotifications extension

Integrate Discord with MediaWiki.TheDiscordNotifications extension sends notifications of actions in MediaWiki like adding, removing or deleting an article into designated Discord channel(s).

Installation

[edit]
  • Download and place the file(s) in a directory calledDiscordNotifications in yourextensions/ folder.
  • Add the following code at the bottom of yourLocalSettings.php file:
    wfLoadExtension('DiscordNotifications');// Required. Your Discord incoming webhook URL. Read more from here: https://support.discordapp.com/hc/en-us/articles/228383668$wgDiscordIncomingWebhookUrl="";// Required. Name the message will appear be sent from.$wgDiscordFromName="Wiki";// URL into your MediaWiki installation with the trailing /.$wgDiscordNotificationWikiUrl="http://your_wiki_url/";// Wiki script name. Leave this to default one if you do not have URL rewriting enabled.$wgDiscordNotificationWikiUrlEnding="index.php?title=";// What method will be used to send the data to Discord server. By default this is "curl" which only works if you have the curl extension enabled. This can be: "curl" or "file_get_contents". Default: "curl"$wgDiscordSendMethod="curl";
  • YesDone – Navigate toSpecial:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

[edit]

Please read the projectREADME file for more configuration options.

See also

[edit]
This extension is included in the following wiki farms/hosts and/or packages:This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm.
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:DiscordNotifications&oldid=7824945"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp