Extension:Discord/ru
The Discord extension sends notifications to a Discord webhook (or several) from MediaWiki. When a certain event occurs on your MediaWiki wiki, including new edits, they can be sent as a message to a channel on a Discord server using a webhook.
This extension requires cURL to be installed on your web server, which on Linux is probably as simple as running sudo apt install curl -y
.
Live demo: https://runescape.wiki (https://discord.gg/runescapewiki)
Установка
- Download и распакуйте файл(ы) в папку с названием
Discord
в вашей папкеextensions/
. - Добавьте следующий код внизу вашего
LocalSettings.php
:wfLoadExtension( 'Discord' ); // List webhook URLs to send notifications to (string or array containing strings) $wgDiscordWebhookURL = [ "" ];
- Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
Параметры конфигурации
See README
См. также
- Extension:DiscordNotifications - an alternate Discord webhook extension
- Extension:DiscordRCFeed
Это расширение включено в следующие пакеты и/или вики-фермы: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |