Skip to main content

denobot

Deno client module for Botway.


Usage

after creating a new deno botway project, you need to use your tokens to connect with your bot.

...
import { createBot, enableCachePlugin, getToken, getAppId } from "./deps.ts";
import { events } from "./src/events/mod.ts";

...

export const bot = enableCachePlugin(
    createBot({
        token: getToken(),
        botId: getAppId(),
        intents: [],
        events,
    }),
);
...