Refactor bot. (#8)
This commit is contained in:
parent
e0374bea36
commit
259d540e6f
18 changed files with 491 additions and 300 deletions
10
src/commands/ping.ts
Normal file
10
src/commands/ping.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { Command } from '../index';
|
||||
|
||||
export const cmd: Command = {
|
||||
name: 'ping',
|
||||
desc: 'Shows the ping of the bot',
|
||||
aliases: ['test'],
|
||||
exec: async (e) => {
|
||||
return await e.reply(`${e.client.ws.ping}ms`);
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue