aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-04 17:07:38 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-04 17:07:38 -0400
commit1dee5bcda6a43eaa7fcc88ed3b0e458f32104de4 (patch)
treeaa4ae8c7e2315d6ebd6500000a17d3a1c45b4c87 /src/commands/info
parent153a40fbcd314459f94d9a2b44d3466c930c4e35 (diff)
downloadtanzanite-1dee5bcda6a43eaa7fcc88ed3b0e458f32104de4.tar.gz
tanzanite-1dee5bcda6a43eaa7fcc88ed3b0e458f32104de4.tar.bz2
tanzanite-1dee5bcda6a43eaa7fcc88ed3b0e458f32104de4.zip
cleaned up lib imports
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',