Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohemohe/hubot-kokoro.io
kokoro.io hubot adapter
https://github.com/mohemohe/hubot-kokoro.io
hubot hubot-adapter kokoro-io
Last synced: 3 months ago
JSON representation
kokoro.io hubot adapter
- Host: GitHub
- URL: https://github.com/mohemohe/hubot-kokoro.io
- Owner: mohemohe
- License: wtfpl
- Created: 2018-06-11T14:44:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-22T05:06:05.000Z (almost 3 years ago)
- Last Synced: 2024-09-14T05:09:48.113Z (4 months ago)
- Topics: hubot, hubot-adapter, kokoro-io
- Language: JavaScript
- Size: 31.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hubot-kokoro.io
kokoro.io hubot adapter## install
```bash
yarn add hubot-kokoro.io
```## usage
```bash
export HUBOT_KOKOROIO_ACCESSTOKEN='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
export HUBOT_KOKOROIO_CALLBACKSECRET='YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY'
hubot -a kokoro.io -n your-bot-name
```kokoro.ioのAPI制限により、`-n`でアカウント名を指定しないと`respond`できません
## messageオブジェクト
```js
{
user: '🍌ばなな🍌',
text: 'ho',
id: 194944,
done: false,
room: 'LQD2XCZEQ',
display_name: '🍌ばなな🍌',
screen_name: 'mohemohe',
raw: {},
}
```| key | |
| --- | - |
| user | display_nameのエイリアス |
| text | チャット本文 |
| id | kokoro.ioのメッセージID |
| room | チャットが送信されたルームのID |
| display_name | ユーザーの表示名 |
| screen_name | ユーザーのスクリーンネーム(メンションとかにつかうやつ) |
| raw | kokoro.ioの素のメッセージオブジェクト |