13.1.8 debug work command
This commit is contained in:
3 files changed
+6
-5
No files matched your search
+4
-3
@@ -59,9 +59,10 @@ module.exports = {
|
|||||||
if (!success) return client.sendInternalError(interaction, 'Failed to add inventory');
|
if (!success) return client.sendInternalError(interaction, 'Failed to add inventory');
|
||||||
}
|
}
|
||||||
|
|
||||||
const now = new Date();
|
let now = new Date();
|
||||||
const msBetweenDates = Math.abs(inventory.lastWork - now)
|
let diff = (now - inventory.guilds[GuildDB.serverID].lastWork) / 1000;
|
||||||
const hoursBetweenDates = msBetweenDates / (60 * 60 * 1000)
|
diff /= (60 * 60);
|
||||||
|
let hoursBetweenDates = Math.abs(Math.round(diff));
|
||||||
|
|
||||||
if (hoursBetweenDates >= 24) {
|
if (hoursBetweenDates >= 24) {
|
||||||
let workRoles = []
|
let workRoles = []
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ require('dotenv').config();
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
Dev: "PROD.",
|
Dev: "PROD.",
|
||||||
Version: "13.1.7", // (major).(feature).(revision/bug/refactoring)
|
Version: "13.1.8", // (major).(feature).(revision/bug/refactoring)
|
||||||
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
||||||
DefaultPrefix: "?",
|
DefaultPrefix: "?",
|
||||||
ServerID: "955668596745461830",
|
ServerID: "955668596745461830",
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js",
|
"start": "node index.js",
|
||||||
"dev": "nodemon dev-index.js"
|
"dev": "node dev-index.js"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Roleplay",
|
"Roleplay",
|
||||||
|
|||||||
Reference in new issue
Block a user