2023.5.22 • Published 12 months ago

meowerbot v2023.5.22

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

MeowerBot.js

Port of meower.py to Node.js and TypeScript

Installation

npm install meowerbot

Example Bot

import Bot from "meowerbot";

const bot = new Bot(); 

bot.onLogin(() => { // Runs when logged in
    bot.post("Hello from MeowerBot.js!");
});

bot.onCommand("help", (ctx) => { // Runs when a new post with a bot command is sent
    ctx.reply("Commands: @username help");
});

bot.onMessage((data) => { // Runs when the server sends a new message
    console.log(`New message: ${data}`);
});

bot.onClose(() => { // Runs when the bot gets disconnected
    console.log("Disconnected");
    bot.login("username", "password");
});

bot.login("username", "password"); // Init, then login to Meower
2023.5.22

12 months ago

2023.5.12

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.4.4

1 year ago

1.3.5

1 year ago

1.4.3

1 year ago

1.3.4

1 year ago

1.2.5

1 year ago

1.6.0

1 year ago

1.4.2

1 year ago

1.3.3

1 year ago

1.5.0

1 year ago

1.4.1

1 year ago

1.3.2

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago