generated from nhcarrigan/template
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { DiscordAnalytics } from "@nhcarrigan/discord-analytics";
|
||||
import { Client, Events, GatewayIntentBits, Partials } from "discord.js";
|
||||
import { chatInputInteractionCreate } from "./events/interactionCreate.js";
|
||||
import {
|
||||
@@ -24,11 +25,14 @@ const hikari = new Client({
|
||||
],
|
||||
});
|
||||
|
||||
const analytics = new DiscordAnalytics(hikari, logger);
|
||||
|
||||
hikari.once(Events.ClientReady, () => {
|
||||
void logger.log(
|
||||
"debug",
|
||||
`Logged in as ${hikari.user?.username ?? "unknown"}`,
|
||||
);
|
||||
analytics.startCron();
|
||||
});
|
||||
|
||||
hikari.on(Events.MessageCreate, (message) => {
|
||||
|
||||
Reference in New Issue
Block a user