generated from nhcarrigan/template
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 637699f5bb |
+11
-16
@@ -7,15 +7,12 @@
|
|||||||
import { DiscordAnalytics } from "@nhcarrigan/discord-analytics";
|
import { DiscordAnalytics } from "@nhcarrigan/discord-analytics";
|
||||||
import { Client, Events, GatewayIntentBits, Partials } from "discord.js";
|
import { Client, Events, GatewayIntentBits, Partials } from "discord.js";
|
||||||
import { chatInputInteractionCreate } from "./events/interactionCreate.js";
|
import { chatInputInteractionCreate } from "./events/interactionCreate.js";
|
||||||
|
import {
|
||||||
|
guildMessageCreate,
|
||||||
|
directMessageCreate,
|
||||||
|
} from "./events/messageCreate.js";
|
||||||
import { logger } from "./utils/logger.js";
|
import { logger } from "./utils/logger.js";
|
||||||
|
|
||||||
/*
|
|
||||||
* Import {
|
|
||||||
* guildMessageCreate,
|
|
||||||
* directMessageCreate,
|
|
||||||
* } from "./events/messageCreate.js";
|
|
||||||
*/
|
|
||||||
|
|
||||||
const hikari = new Client({
|
const hikari = new Client({
|
||||||
intents: [
|
intents: [
|
||||||
GatewayIntentBits.Guilds,
|
GatewayIntentBits.Guilds,
|
||||||
@@ -38,15 +35,13 @@ hikari.once(Events.ClientReady, () => {
|
|||||||
analytics.startCron();
|
analytics.startCron();
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
hikari.on(Events.MessageCreate, (message) => {
|
||||||
* Hikari.on(Events.MessageCreate, (message) => {
|
if (!message.inGuild()) {
|
||||||
* if (!message.inGuild()) {
|
void directMessageCreate(hikari, message);
|
||||||
* void directMessageCreate(hikari, message);
|
return;
|
||||||
* return;
|
}
|
||||||
* }
|
void guildMessageCreate(hikari, message);
|
||||||
* void guildMessageCreate(hikari, message);
|
});
|
||||||
* });
|
|
||||||
*/
|
|
||||||
|
|
||||||
hikari.on(Events.InteractionCreate, (interaction) => {
|
hikari.on(Events.InteractionCreate, (interaction) => {
|
||||||
if (interaction.isChatInputCommand()) {
|
if (interaction.isChatInputCommand()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user