MantisBT-Discord – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | MantisBT-Discord |
2 | ============== |
||
3 | |||
4 | A [MantisBT](http://www.mantisbt.org/) plugin to send bug updates to [Discord](https://discordapp.com/) channels. |
||
5 | |||
6 | |||
7 | # Setup |
||
8 | |||
9 | * The `master` branch requires Mantis 2.0.x |
||
10 | * Extract this repo to your *Mantis folder/plugins/Discord*. |
||
11 | * On the Discord side, create a new Webhook (found in *Edit Channel*) and note the URL that Discord generates for you. |
||
12 | * On the MantisBT side, access the plugin's configuration page and fill in your Discord webhook URL. |
||
13 | * You can map your MantisBT projects to other Discord webhooks by setting the *plugin_Discord_url_webhooks* option in Mantis. Follow the instructions on the plugin's configuration page to get there. Make sure the *plugin_Discord_url_webhooks* configuration option is set to "All Users", with type "complex". |
||
14 | Example value for this setting: |
||
15 | |||
16 | array ( |
||
17 | 'My First Mantis Project' => 'https://discordapp.com/api/webhooks/xx/xx', |
||
18 | 'My Second Mantis Project' => 'https://discordapp.com/api/webhooks/xx/xx' |
||
19 | ) |
||
20 | * You can specify which bug fields appear in the Discord notifications. Edit the *plugin_Discord_columns* configuration option for this purpose. Follow the instructions on the plugin configuration page. |
||
21 | * You can map MantisBT usernames to Discord mentions. You can configure it the same way as the other "complex" configurations above. |
||
22 | Example value for this setting: |
||
23 | |||
24 | array ( |
||
25 | 'My First Mantis Project' => 'https://discordapp.com/api/webhooks/xx/xx', |
||
26 | 'My Second Mantis Project' => 'https://discordapp.com/api/webhooks/xx/xx' |
||
27 | ) |
||
28 | |||
29 | ### Locate Discord ID |
||
30 | |||
31 | Before you can find the Discord ID of a user you'll need to enable Developer Mode in Discord. You can find this option here: |
||
32 | > Settings Menu > Appearance > Developer Mode |
||
33 | |||
34 | After you've done that, you can right click on a user and select "Copy ID". This will copy the correct Discord ID to your clipboard. |
||
35 | |||
36 | |||
37 | |||
38 | # Forked |
||
39 | |||
40 | This is a modified version of the [Slack Plugin](https://github.com/infojunkie/MantisBT-Slack) made by [Karim Ratib](https://github.com/infojunkie) |