PEPPERBOT VOICE CHAT CAPABILITY

This commit is contained in:
ayeuhugyu 2023-09-27 20:31:22 -07:00
parent 7d5d32fec1
commit b92fe05718
11 changed files with 265 additions and 50 deletions

View file

@ -1,5 +1,6 @@
import { GatewayIntentBits, Partials, Client } from "discord.js";
import events from "./events/importEvents.js";
import register from "./register-commands.js";
const client = new Client({
intents: [
@ -8,6 +9,7 @@ const client = new Client({
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildVoiceStates,
],
partials: [Partials.Message, Partials.Channel],
});
@ -28,4 +30,10 @@ client.on("messageCreate", async (message) => {
events.messageCreate(message, client);
});
client.on("interactionCreate", (interaction) => {
events.interactionCreate(interaction);
});
register();
client.login(process.env.TOKEN);