mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
17 lines
509 B
TypeScript
17 lines
509 B
TypeScript
import { commandModule, CommandType } from '@sern/handler'
|
|
// @ts-ignore
|
|
import prettySeconds from 'pretty-seconds-spanish'
|
|
|
|
export default commandModule({
|
|
name: 'uptime',
|
|
type: CommandType.Slash,
|
|
plugins: [],
|
|
description: 'Enseña el tiempo que ha estado encendido el bot.',
|
|
//alias : [],
|
|
options: [],
|
|
execute: async (ctx) => {
|
|
// const uptime = prettyMilliseconds(ctx.client.uptime!)
|
|
const uptime = prettySeconds(process.uptime())
|
|
await ctx.reply(`El bot lleva encendido ${uptime}`);
|
|
},
|
|
}); |