originChats bot library for typescript
- TypeScript 100%
| obots | ||
| .gitignore | ||
| deno.json | ||
| deno.lock | ||
| main.ts | ||
| README.md | ||
originChats bot library in typescript
import { start } from "./obots/main.ts";
const bot = start([
"wss://chats.flufi.uk"
]);
bot.onReady(() => {
bot.onSlash("myCommand", "example obots command")
.do(() => "Haii :3")
bot.registerSlashes();
});
bot.onMessage((msg) => {
if (msg.content == "ping")
msg.reply("pong");
});