pineafan | 3a02ea3 | 2022-08-11 21:35:04 +0100 | [diff] [blame^] | 1 | // @ts-expect-error |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 2 | import { HaikuClient } from "jshaiku"; |
| 3 | import { Intents } from "discord.js"; |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 4 | import config from "../config/main.json" assert { type: "json" }; |
pineafan | 6fb3e07 | 2022-05-20 19:27:23 +0100 | [diff] [blame] | 5 | |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 6 | const client = new HaikuClient( |
| 7 | { |
| 8 | intents: new Intents(32767).bitfield // This is a way of specifying all intents w/o having to type them out |
| 9 | }, |
| 10 | config |
| 11 | ); |
pineafan | 6fb3e07 | 2022-05-20 19:27:23 +0100 | [diff] [blame] | 12 | |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 13 | export default client; |