This commit is contained in:
parent
9c4a57a098
commit
24e019e34f
3 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
const calculateReloaded = require("../../util/calculateReloaded");
|
||||
const executeCommand = require("../../util/executeCommand");
|
||||
const reloadCommands = require("../../util/reloadCommands");
|
||||
|
||||
module.exports = {
|
||||
|
@ -31,6 +32,7 @@ module.exports = {
|
|||
sendText = `${sendText}\n... Message is too long to show everything`
|
||||
}
|
||||
message.channel.send(sendText)
|
||||
client.githash = executeCommand(`git`, ["rev-parse", "--short", "HEAD"])
|
||||
if (err) console.log(stderr)
|
||||
})
|
||||
}
|
||||
|
|
|
@ -15,7 +15,8 @@ module.exports = {
|
|||
`Total Members: ${guildInfo.totalMembers}`,
|
||||
`Total Commands: ${client.commands.size}`,
|
||||
`Creation Date: ${getCreationDate(client)}`,
|
||||
`Source: [Click Here](https://github.com/SileNce5k/discord_bot)`
|
||||
`Source: [Click Here](https://github.com/SileNce5k/discord_bot)`,
|
||||
`Current Version: ${client.githash}`
|
||||
]
|
||||
|
||||
let description = "";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
const fs = require('fs');
|
||||
const createInitialConfig = require("./util/createInitialConfig")
|
||||
const convertJSONToSQL = require('./util/timer/convertJSONToSQL');
|
||||
const executeCommand = require('./util/executeCommand.js');
|
||||
const sqlite3 = require('sqlite3').verbose();
|
||||
if(!fs.existsSync("./data/config.json")) {
|
||||
createInitialConfig();
|
||||
|
@ -55,6 +56,7 @@ createAndLoadWhitelistTable(client.whitelist);
|
|||
client.settings.set("presenceType", presenceType);
|
||||
client.settings.set("presenceText", presenceText);
|
||||
client.settings.set("globalPrefix", globalPrefix);
|
||||
client.githash = executeCommand(`git`, ["rev-parse", "--short", "HEAD"])
|
||||
|
||||
const reloadCommands = require("./util/reloadCommands.js");
|
||||
const onMessage = require('./server/message');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue