2023.5.22 • Published 2 years ago
meowerbot v2023.5.22
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
2 years ago
2023.5.12
2 years ago
1.3.7
2 years ago
1.3.6
2 years ago
1.4.4
2 years ago
1.3.5
2 years ago
1.4.3
2 years ago
1.3.4
2 years ago
1.2.5
2 years ago
1.6.0
2 years ago
1.4.2
2 years ago
1.3.3
2 years ago
1.5.0
2 years ago
1.4.1
2 years ago
1.3.2
2 years ago
1.4.0
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.4
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago