cyclebot
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

cyclebot

🌀🤖

How to run

 
const {run} = require('@cycle/rxjs-run');
const {makeSlackBotDriver, requestMessageById} = require('cyclebot');
 
run(({Bot}) => {
    return {
        Bot: Bot.selectByChannelName('bot').map(message => 
             requestMessageById(message.channel_id, message.text))
    }
}, {
  Bot: makeSlackBotDriver(`${process.env.SLACK_TOKEN}`, {})
});
 

Readme

Keywords

none

Package Sidebar

Install

npm i cyclebot

Weekly Downloads

7

Version

1.2.0

License

MIT

Last publish

Collaborators

  • hiroqn