1.0.12 • Published 2 years ago

super-robots v1.0.12

Weekly downloads
1
License
ISC
Repository
-
Last release
2 years ago

Super Robots

npm (scoped)

What's it?

It extends the hubot robot. Hubot only can support a adapter. Super Robots can support serveal hobut instance, and can support Skype Channel.

Super Robots support customer Channel easiyly. That means if some channel can't be integrated to hubot, such as simple web api (support send/receive message by rest api), we can develop a customized channel, and integrated into Super Robots.

How to use?

  1. Add Super Robots to your project npm install super-robots -save
  2. Add the following code to your app.js
const path = require('path')

var superRobots = require("super-robots");

const options = {
    port : process.env.port || process.env.PORT,
    channels :[{
        name: 'skype',
        type: 'skype',
        appId: 'your skpye bot appId',
        password:'your skype bot password'
     },
     {
        name: 'slack',
        type: 'hubot',
        token: 'your slack token'
     },
    ],
    extChannelPath : path.resolve(".", "channel"),
    commandsPath : path.resolve(".", "command"),
    tasksPath: path.resolve(".", "task")
}

const robots = superRobots.loadBots(options);
robots.start();

Customize

  1. add commdands to the folder ./command
  2. add channels to the folder ./channel
  3. add tasks to the folder ./tasks

NOTE: You can specify the folder for commands/channels/tasks

1.0.12

2 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago