summaryrefslogtreecommitdiff
path: root/src/commands/bot/uptime.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-27 10:40:43 -0700
committer8cy <[email protected]>2020-04-27 10:40:43 -0700
commit5aee01b480ee2a3fb0581dec20e890ac2f1743d7 (patch)
tree0b49b4e1dd2f2001ccf3d17b09bec3bc2d6a79cc /src/commands/bot/uptime.ts
parentchange formatting of serverinfo embed, v8.0.1 (diff)
downloaddep-core-5aee01b480ee2a3fb0581dec20e890ac2f1743d7.tar.xz
dep-core-5aee01b480ee2a3fb0581dec20e890ac2f1743d7.zip
add support and embed cmd, v8.0.2
also change msg.channel.send to msg.say
Diffstat (limited to 'src/commands/bot/uptime.ts')
-rw-r--r--src/commands/bot/uptime.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/bot/uptime.ts b/src/commands/bot/uptime.ts
index 3280d9e..9128ab7 100644
--- a/src/commands/bot/uptime.ts
+++ b/src/commands/bot/uptime.ts
@@ -26,14 +26,14 @@ export default class UptimeBot extends Command {
}
run(msg: CommandoMessage) {
const duration = _duration(this.client.uptime).format(" D [days], H [hrs], m [mins], s [secs]");
- msg.channel.send('Please wait...').then(m => {
+ msg.say('Please wait...').then(m => {
m.edit(`** **`);
let emb = new MessageEmbed()
.setDescription('<@699473263998271489> has been up for ' + duration + '. ' + emoji.random())
.setColor(0xFFCC4D)
- msg.channel.send(emb);
+ msg.say(emb);
});
}
} \ No newline at end of file