# meowerbot

> Port of meower.py to Node.js and TypeScript

Latest version **2023.5.22** (published 2023-05-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install meowerbot
pnpm add meowerbot
yarn add meowerbot
bun add meowerbot
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2023.5.22 |
| Published | 2023-05-22 |
| First published | 2022-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | M.D. Walters |
| Maintainers | mdwalters |

## Links

- npm: https://www.npmjs.com/package/meowerbot
- Repository: https://github.com/meower-community/meower.js
- Homepage: https://github.com/meower-community/meower.js#readme
- Issues: https://github.com/meower-community/meower.js/issues
- npm.io page: https://npm.io/package/meowerbot

## Dependencies (2)

- [ws](https://npm.io/package/ws.md) ^8.13.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^3.3.1

## Recent versions

- 2023.5.22 (latest) — 2023-05-22
- 2023.5.12 — 2023-05-12
- 1.6.0 — 2023-03-22
- 1.5.0 — 2023-03-02
- 1.4.4 — 2023-02-22
- 1.4.3 — 2023-02-10
- 1.4.2 — 2023-02-10
- 1.4.1 — 2023-02-10
- 1.4.0 — 2023-02-10
- 1.3.7 — 2023-01-16
- 1.3.6 — 2023-01-16
- 1.3.5 — 2023-01-16
- 1.3.4 — 2023-01-14
- 1.3.3 — 2023-01-13
- 1.3.2 — 2023-01-13
- … 11 more at https://npm.io/package/meowerbot/versions

## README

# MeowerBot.js
Port of meower.py to Node.js and TypeScript
## Installation
```bash
npm install meowerbot
```
## Example Bot
```js
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
```

---
_Source: https://npm.io/package/meowerbot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
