Extension:DiscordNotifications/cs
Integrate Discord with MediaWiki. The DiscordNotifications extension sends notifications of actions in MediaWiki like adding, removing or deleting an article into designated Discord channel(s).
Installation
- Download soubor/y a vložte je do adresáře pojmenovaného
DiscordNotifications
ve vaší složceextensions/
. - Na konec vašeho souboru LocalSettings.php přidejte následující kód:
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";
Dokončeno – Přejděte na stránku Special:Version vaší wiki a zkontrolujte, zda bylo rozšíření úspěšně nainstalováno.
Configuration parameters
Please read the project README file for more configuration options.
See also
![]() | Toto rozšíření je zahrnuto v následujících wiki farmách/hostitelích a/nebo balíčcích: Toto není autoritativní seznam. Některé wiki farmy/hostitelé a/nebo balíčky mohou toto rozšíření obsahovat, i když zde nejsou uvedeny. Pro potvrzení se vždy obraťte na své wiki farmy/hostitele nebo balíček. |
Category:APIFlowAfterExecute extensions/cs
Category:AfterImportPage extensions/cs
Category:All extensions/cs
Category:ArticleProtectComplete extensions/cs
Category:BlockIpComplete extensions/cs
Category:Discord extensions/cs
Category:Extensions in GitHub version control/cs
Category:Extensions included in Miraheze/cs
Category:Extensions included in WikiForge/cs
Category:Extensions with manual MediaWiki version
Category:LocalUserCreated extensions/cs
Category:MIT licensed extensions/cs
Category:Notification extensions/cs
Category:PageDeleteComplete extensions/cs
Category:PageMoveComplete extensions/cs
Category:PageSaveComplete extensions/cs
Category:Stable extensions/cs
Category:UploadComplete extensions/cs
Category:UserGroupsChanged extensions/cs
Category:User interface extensions/cs