Added gather bot

This commit is contained in:
Chris Blanchard 2015-09-14 23:33:49 +01:00
parent 98a89ee4b9
commit 2e0133626b
5 changed files with 15 additions and 5 deletions

View file

@ -8,7 +8,8 @@ var config = {
secret_token: "",
session_store_name: "_ENSL_session_key_staging",
hive_url: "http://hive.naturalselection2.com/",
ensl_url: "http://staging.ensl.org/"
ensl_url: "http://staging.ensl.org/",
steam_bot_link: "http://steamcommunity.com/id/nslgathers"
};
module.exports = config;

View file

@ -8,7 +8,8 @@ var config = {
secret_token: "",
session_store_name: "_ENSL_session_key",
hive_url: "http://hive.naturalselection2.com/",
ensl_url: "http://www.ensl.org/"
ensl_url: "http://www.ensl.org/",
steam_bot_link: "http://steamcommunity.com/id/nslgathers"
};
module.exports = config;

View file

@ -8,7 +8,8 @@ var config = {
secret_token: "",
session_store_name: "_ENSL_session_key_staging",
hive_url: "http://hive.naturalselection2.com/",
ensl_url: "http://staging.ensl.org/"
ensl_url: "http://staging.ensl.org/",
steam_bot_link: "http://steamcommunity.com/id/nslgathers"
};
module.exports = config;

View file

@ -7,7 +7,8 @@ var config = require("./config.js");
module.exports = app => {
app.get("/", (request, response, next) => {
response.render("index.hbs", {
redirect: config.ensl_url
redirect: config.ensl_url,
bot_url: config.steam_bot_link
});
});

View file

@ -2,9 +2,15 @@
<div class="navbar-header">
<a class="navbar-brand" href="/">ENSL.org Gathers <strong>Alpha</strong></a>
</div>
<ul class="nav navbar-top-links navbar-right" id="currentuser">
</ul>
<ul class="nav navbar-top-links navbar-right" id="soundcontroller">
</ul>
<ul class="nav navbar-top-links navbar-right">
<li>
<a href={{bot_url}} target="_blank">
Gather Bot&nbsp;<i className="fa fa-external-link"></i>
</a>
</li>
</ul>
</nav>