blob: 9e2770c8815bdd88e0d0f5b875fc3f5a9c490a7a [file] [log] [blame]
Skyler Turner66ac7942022-02-24 01:59:22 +00001import { HaikuClient } from 'jshaiku';
2import { Intents } from 'discord.js';
pineafandd1155e2022-02-26 22:06:12 +00003import config from './config/main.json' assert {type: 'json'};
pineafan1dc15722022-03-14 21:27:34 +00004import { Logger } from './utils/log.js';
Skyler Turner66ac7942022-02-24 01:59:22 +00005const client = new HaikuClient({
6 intents: new Intents(32767).bitfield, // This is a way of specifying all intents w/o having to type them out
7}, config);
8
9await client.registerCommandsIn("./commands");
pineafan1dc15722022-03-14 21:27:34 +000010await client.registerEventsIn("./events");
11
12client.logger = new Logger()
13client.verify = {}
Skyler Turner66ac7942022-02-24 01:59:22 +000014
15await client.login();