mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
v10 readme
This commit is contained in:
@@ -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:
|
Here's a minimal example to get started with:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import {
|
import { Intents, startBot } from "https://deno.land/x/discordeno@10.0.0/mod.ts";
|
||||||
Intents,
|
|
||||||
sendMessage,
|
|
||||||
startBot,
|
|
||||||
} from "https://deno.land/x/discordeno@10.0.0/mod.ts";
|
|
||||||
|
|
||||||
startBot({
|
startBot({
|
||||||
token: "BOT TOKEN",
|
token: "BOT TOKEN",
|
||||||
@@ -42,9 +38,8 @@ startBot({
|
|||||||
console.log("Successfully connected to gateway");
|
console.log("Successfully connected to gateway");
|
||||||
},
|
},
|
||||||
messageCreate(message) {
|
messageCreate(message) {
|
||||||
if (message.content === "ping") {
|
if (message.content === "!ping") {
|
||||||
|
message.reply("Pong using Discordeno!");
|
||||||
sendMessage(message.channelID, "Pong using Discordeno!");
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user