diff --git a/README.md b/README.md index 5efd750a3..2b473fa1f 100644 --- a/README.md +++ b/README.md @@ -28,16 +28,22 @@ If you do not wish to use a boilerplate, you may continue reading. Here's a minimal example to get started with: ```typescript -import startBot, { sendMessage, Intents } from "https://deno.land/x/discordeno@9.4.0/mod.ts"; +import { + Intents, + sendMessage, + startBot, +} from "https://deno.land/x/discordeno@9.4.0/mod.ts"; startBot({ token: "BOT TOKEN", intents: [Intents.GUILD_MESSAGES, Intents.GUILDS], eventHandlers: { - ready: () => console.log('Successfully connected to gateway'), - messageCreate: (message) => { - if (message.content === "hello") { - sendMessage(message.channelID, "Hi there!"); + ready() { + console.log("Successfully connected to gateway"); + }, + messageCreate(message) { + if (message.content === "ping") { + sendMessage(message.channelID, "Pong using Discordeno!"); } }, }, diff --git a/test.ts b/test.ts deleted file mode 100644 index 78bfdc306..000000000 --- a/test.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { startBot } from "./mod.ts"; - -await startBot({ - token: "NzcxMDU2NzQzNTI1Nzc3NDM4.X5mkjQ.CXt_evCNBYYvNLRy6WbjRQ1v4-Y", - intents: [34508732], - eventHandlers: { - debug: console.log, - ready() { - console.log("Successfully logged in!"); - } - } -}); \ No newline at end of file