client.ts 428 B

123456789101112131415
  1. import { Client, ClientUser } from "discord.js";
  2. import { XenforoClient } from "./xenforo";
  3. export const FORUMS_DOMAIN = "https://custommaid3d2.com";
  4. export class BotClient {
  5. public bot = new Client();
  6. public forum = new XenforoClient(`${FORUMS_DOMAIN}/api`, process.env.FORUM_API_KEY ?? "");
  7. get botUser(): ClientUser {
  8. return this.bot.user!;
  9. }
  10. }
  11. export const client = new BotClient();