Skyler Turner | 66ac794 | 2022-02-24 01:59:22 +0000 | [diff] [blame^] | 1 | import { HaikuClient } from 'jshaiku'; |
2 | import { Intents } from 'discord.js'; | ||||
3 | import config from './config.json' assert {type: 'json'}; | ||||
4 | |||||
5 | const 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 | |||||
9 | await client.registerCommandsIn("./commands"); | ||||
10 | |||||
11 | await client.login(); |