# hahamute

> const hahamute = require('hahamute'); const PORT = process.env.PORT || 3000;

Latest version **1.0.0** (published 2019-07-11) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-07-11 |
| First published | 2019-07-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | momu |

## Links

- npm: https://www.npmjs.com/package/hahamute
- npm.io page: https://npm.io/package/hahamute

## Dependencies (3)

- [crypto](https://npm.io/package/crypto.md) ^1.0.1
- [request](https://npm.io/package/request.md) ^2.88.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.19.0

## Recent versions

- 1.0.0 (latest) — 2019-07-11

## README

const hahamute = require('hahamute');
const PORT = process.env.PORT || 3000;

const Hahamute = hahamute({
    AccessToken:'Your AccessToken',
    AppSecret:'Your AppSecret'
});
const imgpath =  __dirname + '/imgpath';

// Optional express
const express = require('express');
const app = express();
const HahamuteParser = Hahamute.parser();
app.post('/habot', HahamuteParser);
app.listen(PORT);

// Optional http server
Hahamute.listen('/habot',PORT,()=>{
    console.log('server start on port '+PORT);
});

// message event
Hahamute.on('message', function (event) {
    //send message
    Hahamute.sendmessage(event.sender_id,event.message.text);
    //send sticker
    Hahamute.sendsticker(event.sender_id,'9','01');
    //send img
    Hahamute.sendimg(event.sender_id,imgpath);
});

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