Module

x/denobot/README.md

🤖 Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.
Go to Latest
File

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