From b561580c683acbb58e56af4bd800a05865f6b9e9 Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Tue, 13 Dec 2022 19:08:24 +1100 Subject: [PATCH 1/2] +moment-duration-format --- package-lock.json | 11 +++++++++++ package.json | 1 + 2 files changed, 12 insertions(+) diff --git a/package-lock.json b/package-lock.json index 2483dac..97eff8c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "eslint": "^8.29.0", "fs-readdir-recursive": "^1.1.0", "moment": "^2.29.4", + "moment-duration-format": "^2.3.2", "node-fetch": "^2.6.7", "pg": "^8.5.1", "pg-format": "^1.0.4", @@ -1051,6 +1052,11 @@ "node": "*" } }, + "node_modules/moment-duration-format": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/moment-duration-format/-/moment-duration-format-2.3.2.tgz", + "integrity": "sha512-cBMXjSW+fjOb4tyaVHuaVE/A5TqkukDWiOfxxAjY+PEqmmBQlLwn+8OzwPiG3brouXKY5Un4pBjAeB6UToXHaQ==" + }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -2528,6 +2534,11 @@ "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==" }, + "moment-duration-format": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/moment-duration-format/-/moment-duration-format-2.3.2.tgz", + "integrity": "sha512-cBMXjSW+fjOb4tyaVHuaVE/A5TqkukDWiOfxxAjY+PEqmmBQlLwn+8OzwPiG3brouXKY5Un4pBjAeB6UToXHaQ==" + }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", diff --git a/package.json b/package.json index 624eadb..a183f1b 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "eslint": "^8.29.0", "fs-readdir-recursive": "^1.1.0", "moment": "^2.29.4", + "moment-duration-format": "^2.3.2", "node-fetch": "^2.6.7", "pg": "^8.5.1", "pg-format": "^1.0.4", From df8e98a7961803dc90414744a76c7b793bcb0013 Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Tue, 13 Dec 2022 19:08:29 +1100 Subject: [PATCH 2/2] changes --- bot/commands/Bot/about.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bot/commands/Bot/about.js b/bot/commands/Bot/about.js index 4da802b..7ee86c5 100644 --- a/bot/commands/Bot/about.js +++ b/bot/commands/Bot/about.js @@ -1,7 +1,6 @@ const Command = require('../../base/Command.js'); const { version } = require('discord.js'); const moment = require('moment'); -const { EmbedBuilder } = require('@discordjs/builders'); require('moment-duration-format'); @@ -23,9 +22,8 @@ module.exports = class About extends Command { build = 'development'; } - embed = new EmbedBuilder() - .setColor(client.functions.embedColor(interaction.guild) - .setThumbnail(client.user.vatarURL({format: "png"})) + const embed = new client.EmbedBuilder() + .setThumbnail(client.user.avatarURL({format: "png"})) .setTitle('About me!') .addFields([ { @@ -42,8 +40,8 @@ module.exports = class About extends Command { name: 'Links', value: '[Support](https://discord.gg/HCF8mdv) | [Git](https://gitdab.com/embee/woomy)' } - ]) - interaction.reply({embeds: embed}) + ]); + interaction.reply({embeds: embed}); }