Extension:SlackNotifications

From mediawiki.org
This page is a translated version of the page Extension:SlackNotifications and the translation is 72% complete.
MediaWiki 拡張機能マニュアル
Slack Notifications
リリースの状態: 保守されていない
実装 ユーザー インターフェイス, 通知
説明 Sends notifications of actions in MediaWiki like adding, removing or deleting an article into Slack channel
作者 Aleksi Postari (kulttuuriトーク)
最新バージョン 1.15 (2020-05-14)
MediaWiki 1.25+
PHP 5.2+
データベースの変更 いいえ
ライセンス MIT ライセンス
ダウンロード

  • $wgSlackIncomingWebhookUrl
  • $wgSlackFromName
  • $wgSlackSendMethod
  • $wgSlackNotificationWikiUrl
  • $wgSlackNotificationWikiUrlEnding

The SlackNotifications sends notifications of actions in MediaWiki like adding, removing or deleting an article into Slack channel.

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のSlackNotificationsという名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'SlackNotifications' );
    // 必須。 あなたのSlack着信用WebhookのURLです。 Read more from here: https://api.slack.com/incoming-webhooks
    $wgSlackIncomingWebhookUrl = "";
    // 必須。 メッセージの送信元として表示される名前です。
    $wgSlackFromName = "Wiki";
    // 末尾に/を付けてMediaWikiインストールへのURL。
    $wgSlackNotificationWikiUrl		= "http://your_wiki_url/";
    // ウィキのスクリプト名。 URL の書き換えを有効にしていない場合は、既定値のままにしてください。
    $wgSlackNotificationWikiUrlEnding = "index.php?title=";
    // どのような方法でDiscordサーバーにデータを送信するのか。 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".
    $wgSlackSendMethod = "curl";
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定のパラメーター

その他の設定オプションについては、プロジェクトのREADMEファイルをお読みください。