mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
chore: Updated example code to match final version (#2426)
* Updated example code to match final version * readme: update example Co-authored-by: LTS20050703 <lts20050703@gmail.com>
This commit is contained in:
co-authored by
LTS20050703
parent
43a54e1403
commit
b50314faee
@@ -100,13 +100,12 @@ Have your cache setup in any way you like. Redis, PGSQL or any cache layer you w
|
||||
Here is a minimal example to get started with:
|
||||
|
||||
```typescript
|
||||
import { createBot, Intents, startBot } from "https://deno.land/x/discordeno@13.0.0-rc18/mod.ts";
|
||||
import { enableCachePlugin, enableCacheSweepers } from "https://deno.land/x/discordeno_cache_plugin@0.0.18/mod.ts";
|
||||
import { createBot, Intents, startBot } from "https://deno.land/x/discordeno@13.0.0/mod.ts";
|
||||
import { enableCachePlugin, enableCacheSweepers } from "https://deno.land/x/discordeno@13.0.0/plugins/cache/mod.ts";
|
||||
|
||||
const baseBot = createBot({
|
||||
token: Deno.env.get("DISCORD_TOKEN"),
|
||||
intents: Intents.Guilds | Intents.GuildMessages,
|
||||
botId: Deno.env.get("BOT_ID"),
|
||||
events: {
|
||||
ready() {
|
||||
console.log("Successfully connected to gateway");
|
||||
|
||||
Reference in New Issue
Block a user