fix no. 2
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { createBot, Intents, startBot } from "npm:discordeno@18.0.1";
|
import { createBot, Intents, startBot } from "npm:discordeno@18.0.1";
|
||||||
import { yandereMessageHandler } from "./messages.ts";
|
import { messagehandler } from "./messages.ts";
|
||||||
|
|
||||||
const BOT_TOKEN = Deno.env.get("BOT_TOKEN") ?? "";
|
const BOT_TOKEN = Deno.env.get("BOT_TOKEN") ?? "";
|
||||||
if (!BOT_TOKEN) {
|
if (!BOT_TOKEN) {
|
||||||
@@ -14,7 +14,7 @@ const bot = createBot({
|
|||||||
console.log("Bot is ready!");
|
console.log("Bot is ready!");
|
||||||
},
|
},
|
||||||
async messageCreate(bot, message) {
|
async messageCreate(bot, message) {
|
||||||
await yandereMessageHandler(bot, message);
|
await messagehandler(bot, message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user