1.2.10 • Published 7 years ago

menubot v1.2.10

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

menubot

NHNEnt messenger bot about lunch, dinner menu.

Install

$ brew install imagemagick
$ git clone https://github.com/jicjjang/menubot
$ npm install

If you want to use it, you need google vision settings.

https://cloud.google.com/sdk/docs/quickstart-mac-os-x

Usage

menubot = require('bot_menu');

/**
 * Crop the image, find the letter, and send the menu.
 * @param DoorayId
 * @param menuType
 * @param options {
 *   botName,
 *   botIconImage,
 *   attachments: [{
 *     text
 *   }]
 * }
 */
menubot.sendMenu('https://hook.dooray.com/services/[DOORAY_MESSENGER_ID]', 'lunch', {
    src: './img/all_menu/menu.png',
    dst: './img/daily_menu/menu_part.png'
}, {
    botName: 'test',
    botIconImage: 'http://blahblah.com/test.jpg',
    attachments: [{
        text: 'Let\'s lunch time~!'
    }]
});
1.2.10

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago