Skyler Turner | 66ac794 | 2022-02-24 01:59:22 +0000 | [diff] [blame] | 1 | import { HaikuClient } from 'jshaiku'; |
| 2 | import { Intents } from 'discord.js'; |
pineafan | dd1155e | 2022-02-26 22:06:12 +0000 | [diff] [blame] | 3 | import config from './config/main.json' assert {type: 'json'}; |
Skyler Turner | 66ac794 | 2022-02-24 01:59:22 +0000 | [diff] [blame] | 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(); |