blob: 3b735cb29b3dc43c93bbf2fef3468654f688509f [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 = {}
pineafan377794f2022-04-18 19:01:01 +010014client.roleMenu = {}
Skyler Turner66ac7942022-02-24 01:59:22 +000015
16await client.login();