originChats bot library for typescript
  • TypeScript 100%
Find a file
2026-05-22 00:01:26 +01:00
obots first commit 2026-05-21 23:53:28 +01:00
.gitignore first commit 2026-05-21 23:53:28 +01:00
deno.json bleh 2026-05-22 00:01:08 +01:00
deno.lock and this ig 2026-05-22 00:01:26 +01:00
main.ts first commit 2026-05-21 23:53:28 +01:00
README.md bleh 2026-05-22 00:01:08 +01:00

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");
});