Guest User

Untitled

a guest
Apr 1st, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import CommandStatus from "./src/utils/CommandStatus";
  2. import { ExtendedClient } from "./src/structures/Client"
  3. import ApiUtil from "./src/utils/ApiUtil";
  4. require('dotenv').config()
  5.  
  6. ApiUtil.checkHealth().then((healthy) => {
  7. if (!healthy) {
  8. console.log("API is not healthy, shutting down")
  9. process.exit(1)
  10. }
  11. });
  12.  
  13. try {
  14. CommandStatus.loadDisabledCommands()
  15. } catch (e) {
  16. console.error(e)
  17. }
  18. export const client: ExtendedClient = new ExtendedClient()
  19. client.start()
Add Comment
Please, Sign In to add comment