Skip to content

Commit 6fa2d5f

Browse files
committed
Add Discord server id to config
1 parent cda7237 commit 6fa2d5f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

etc/config.sample.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"battleforthenet": "",
66
"vultr": ""
77
},
8-
"discord_url": "https://discord.gg/u87WVeu",
8+
"discord": {
9+
"invite_code": "u87WVeu",
10+
"server_id": 405789880749260820
11+
},
912
"donations": {
1013
"btc_address": "",
1114
"paypal_url": ""

src/controllers/Welcome.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public function &run( Router &$router, View &$view, array &$args ) {
1414

1515
$model = new WelcomeModel();
1616

17-
$model->discord_url = Common::$config->bnetdocs->discord_url;
17+
$model->discord_url = 'https://discord.gg/';
18+
$model->discord_url .= Common::$config->bnetdocs->discord->invite_code;
1819

1920
$view->render( $model );
2021

0 commit comments

Comments
 (0)