mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
20 lines
482 B
TypeScript
20 lines
482 B
TypeScript
import { startBot } from "./src/bot.ts";
|
|
|
|
startBot({
|
|
token: "Nzg1MTM3Mjg5MDcyMDgyOTY1.X8zeFA.vP6lAmWqO2wy9-uOyV4__wNMy8o",
|
|
intents: ["GUILDS", "GUILD_MESSAGES", "GUILD_EMOJIS"],
|
|
eventHandlers: {
|
|
ready() {
|
|
console.log("Successfully connected to gateway");
|
|
},
|
|
messageCreate(message) {
|
|
if (message.content === "ping") {
|
|
message.reply("Pong using Discordeno!");
|
|
}
|
|
},
|
|
guildEmojisUpdate(g, e, c) {
|
|
console.log(e);
|
|
},
|
|
},
|
|
});
|