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:
CatNowBlue
2022-09-03 12:41:25 -04:00
committed by GitHub
co-authored by LTS20050703
parent 43a54e1403
commit b50314faee
+2 -3
View File
@@ -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");