From 56618d91a525f87086fde05060e1e34789e3552e Mon Sep 17 00:00:00 2001 From: Skillz Date: Sat, 26 Dec 2020 20:18:12 -0500 Subject: [PATCH] v10 readme --- README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6642506aa..9367d628a 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,7 @@ If you do not wish to use a boilerplate, you may continue reading. Here's a minimal example to get started with: ```typescript -import { - Intents, - sendMessage, - startBot, -} from "https://deno.land/x/discordeno@10.0.0/mod.ts"; +import { Intents, startBot } from "https://deno.land/x/discordeno@10.0.0/mod.ts"; startBot({ token: "BOT TOKEN", @@ -42,9 +38,8 @@ startBot({ console.log("Successfully connected to gateway"); }, messageCreate(message) { - if (message.content === "ping") { - - sendMessage(message.channelID, "Pong using Discordeno!"); + if (message.content === "!ping") { + message.reply("Pong using Discordeno!"); } }, },