x/denobot@v0.1.0-beta.531

🤖 Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.
GitHub Stars
44
Go to latest

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,
    }),
);
...