aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/info')
-rw-r--r--src/commands/info/botInfo.ts7
-rw-r--r--src/commands/info/help.ts4
-rw-r--r--src/commands/info/ping.ts3
-rw-r--r--src/commands/info/pronouns.ts3
4 files changed, 6 insertions, 11 deletions
diff --git a/src/commands/info/botInfo.ts b/src/commands/info/botInfo.ts
index 6cdae17..4a94318 100644
--- a/src/commands/info/botInfo.ts
+++ b/src/commands/info/botInfo.ts
@@ -1,6 +1,5 @@
import { Message, MessageEmbed } from 'discord.js';
-import { duration } from 'moment';
-import { BushCommand } from '../../lib/extensions/discord-akairo/BushCommand';
+import { BushCommand } from '../../lib';
export default class BotInfoCommand extends BushCommand {
public constructor() {
@@ -32,11 +31,11 @@ export default class BotInfoCommand extends BushCommand {
},
{
name: 'Uptime',
- value: this.client.util.capitalize(duration(this.client.uptime, 'milliseconds').humanize())
+ value: this.client.util.capitalize(this.client.util.humanizeDuration(this.client.uptime))
},
{
name: 'User count',
- value: this.client.users.cache.size.toString(),
+ value: this.client.users.cache.size.toLocaleString(),
inline: true
},
{
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts
index 598f01a..a561d69 100644
--- a/src/commands/info/help.ts
+++ b/src/commands/info/help.ts
@@ -1,7 +1,5 @@
import { MessageActionRow, MessageButton, MessageEmbed } from 'discord.js';
-import { BushCommand } from '../../lib/extensions/discord-akairo/BushCommand';
-import { BushSlashMessage } from '../../lib/extensions/discord-akairo/BushSlashMessage';
-import { BushMessage } from '../../lib/extensions/discord.js/BushMessage';
+import { BushCommand, BushMessage, BushSlashMessage } from '../../lib';
export default class HelpCommand extends BushCommand {
public constructor() {
diff --git a/src/commands/info/ping.ts b/src/commands/info/ping.ts
index 75f4700..c1be3fb 100644
--- a/src/commands/info/ping.ts
+++ b/src/commands/info/ping.ts
@@ -1,6 +1,5 @@
import { Message, MessageEmbed } from 'discord.js';
-import { BushCommand } from '../../lib/extensions/discord-akairo/BushCommand';
-import { BushSlashMessage } from '../../lib/extensions/discord-akairo/BushSlashMessage';
+import { BushCommand, BushSlashMessage } from '../../lib';
export default class PingCommand extends BushCommand {
public constructor() {
diff --git a/src/commands/info/pronouns.ts b/src/commands/info/pronouns.ts
index 1f7ac15..241dce3 100644
--- a/src/commands/info/pronouns.ts
+++ b/src/commands/info/pronouns.ts
@@ -1,7 +1,6 @@
import { Message, MessageEmbed, User } from 'discord.js';
import got, { HTTPError } from 'got';
-import { BushCommand } from '../../lib/extensions/discord-akairo/BushCommand';
-import { BushSlashMessage } from '../../lib/extensions/discord-akairo/BushSlashMessage';
+import { BushCommand, BushSlashMessage } from '../../lib';
export const pronounMapping = {
unspecified: 'Unspecified',