This commit is contained in:
parent
e79d2a7a7e
commit
a891b37a31
2 changed files with 5 additions and 2 deletions
|
@ -32,7 +32,8 @@ module.exports = {
|
||||||
sendText = `${sendText}\n... Message is too long to show everything`
|
sendText = `${sendText}\n... Message is too long to show everything`
|
||||||
}
|
}
|
||||||
message.channel.send(sendText)
|
message.channel.send(sendText)
|
||||||
client.githash = executeCommand(`git`, ["rev-parse", "--short", "HEAD"])
|
const githash = executeCommand(`git`, ["rev-parse", "--short", "HEAD"]);
|
||||||
|
client.githash = githash.error ? "N/A" : githash.output;
|
||||||
if (err) console.log(stderr)
|
if (err) console.log(stderr)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,9 @@ createAndLoadWhitelistTable(client.whitelist);
|
||||||
client.settings.set("presenceType", presenceType);
|
client.settings.set("presenceType", presenceType);
|
||||||
client.settings.set("presenceText", presenceText);
|
client.settings.set("presenceText", presenceText);
|
||||||
client.settings.set("globalPrefix", globalPrefix);
|
client.settings.set("globalPrefix", globalPrefix);
|
||||||
client.githash = executeCommand(`git`, ["rev-parse", "--short", "HEAD"])
|
|
||||||
|
const githash = executeCommand(`git`, ["rev-parse", "--short", "HEAD"]);
|
||||||
|
client.githash = githash.error ? "N/A" : githash.output;
|
||||||
|
|
||||||
const reloadCommands = require("./util/reloadCommands.js");
|
const reloadCommands = require("./util/reloadCommands.js");
|
||||||
const onMessage = require('./server/message');
|
const onMessage = require('./server/message');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue