Skip to content

Latest commit

History

History
executable file
29 lines (24 loc) 路 512 Bytes

README.md

File metadata and controls

executable file
29 lines (24 loc) 路 512 Bytes

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