correct way of formatting the bot's uptime
tried with this but it doesn't return the correct uptime
Solution:Jump to solution
https://github.com/favware/dragonite/blob/main/src/commands/System/info.ts#L167-179
My bad I misread. Anyway you don't need time utilities for uptime. Just use discord native timestamps. Much much better and much much easier....
GitHub
dragonite/src/commands/System/info.ts at main · favware/dragonite
A Pokémon information Discord bot built around Discord Interactions - favware/dragonite
4 Replies
How are we supposed to tell when we have no idea what your formatter is... At any rate, example is here: https://github.com/sapphiredev/examples/blob/main/examples/with-typescript-complete/src/commands/General/ping.ts
GitHub
examples/examples/with-typescript-complete/src/commands/General/pin...
Various examples of setting up your bot with the Sapphire Framework - sapphiredev/examples
there's no uptime thing there, i'm using sapphire formatter
@sapphire/time-utilities
Solution
https://github.com/favware/dragonite/blob/main/src/commands/System/info.ts#L167-179
My bad I misread. Anyway you don't need time utilities for uptime. Just use discord native timestamps. Much much better and much much easier.
GitHub
dragonite/src/commands/System/info.ts at main · favware/dragonite
A Pokémon information Discord bot built around Discord Interactions - favware/dragonite
ty