Skip to content

Commit

Permalink
🐛 fix: moment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
warengonzaga authored May 7, 2024
1 parent b4e65b0 commit 89c8023
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"fs-extra": "^11.1.1",
"google-auth-library": "^9.8.0",
"google-spreadsheet": "^4.1.1",
"moment": "^2.30.1",
"nodemon": "^3.1.0"
},
"devDependencies": {}
Expand Down
1 change: 0 additions & 1 deletion src/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const {
const config = require("./config.json");
const {
sendEmbedMessage,
formatTime,
CloseButtonComponent,
} = require("./utils/core");
const { sendData } = require("./utils/database");
Expand Down
2 changes: 1 addition & 1 deletion src/events/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ module.exports = {
name: Events.Error,
once: false,
execute(error) {
console.log(`Not ready due to ${error}`);
console.log(`[${serverTime()}][error]: ${error}`);
},
};
6 changes: 3 additions & 3 deletions src/events/message.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { Events, Client, GatewayIntentBits, Partials } = require("discord.js");
const { sendEmbedMessage } = require("../utils/core");
const { sendEmbedMessage, serverTime } = require("../utils/core");
const { version } = require("../../package.json");

module.exports = {
Expand All @@ -15,15 +15,15 @@ module.exports = {
message.reply({
embeds: [sendEmbedMessage(`Latency is ${Date.now() - message.createdTimestamp}ms.`)],
});
console.log(`[log]: responded to ping command`);
console.log(`[${serverTime()}][log]: responded to ping command`);
}

// check version
if (message.content === "!!version") {
message.reply({
embeds: [sendEmbedMessage(`Version: ${version}`)],
});
console.log(`[log]: responded to version command in version ${version}`);
console.log(`[${serverTime()}][log]: responded to version command in version ${version}`);
}

},
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,11 @@ minimatch@^3.1.2:
dependencies:
brace-expansion "^1.1.7"

moment@^2.30.1:
version "2.30.1"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.30.1.tgz#f8c91c07b7a786e30c59926df530b4eac96974ae"
integrity sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==

[email protected]:
version "3.7.4"
resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-3.7.4.tgz#119530d826361c3e12ac409b769796d6977037a4"
Expand Down

0 comments on commit 89c8023

Please sign in to comment.