bottery icon indicating copy to clipboard operation
bottery copied to clipboard

Share bot functionality

Open nicoddemus opened this issue 8 years ago • 3 comments

I was thinking, some functionality like talking with Jenkins or GitHub could be shared with others so they can incorporate that functionality into their own bots, similar to how Hubot works. Is this something we would like to have for bottery?

nicoddemus avatar Oct 18 '17 11:10 nicoddemus

I've never used Hubot, didn't get the point. @nicoddemus could your provide an example?

rougeth avatar Oct 19 '17 15:10 rougeth

Sure.

Hubot is basically a hub, so you can install "scripts" into it that teach new commands. So for example, the bare hubot only understands "hubot hello" and replies with "hey".

But then you install hubot-jenkins and now it understands:

  • hubot jenkins b - builds the job specified by jobNumber. List jobs to get number.
  • hubot jenkins build - builds the specified Jenkins job
  • hubot jenkins build , - builds the specified Jenkins job with parameters as key=value&key2=value2
  • hubot jenkins list - lists Jenkins jobs
  • hubot jenkins describe - Describes the specified Jenkins job
  • hubot jenkins last - Details about the last build for the specified Jenkins job

Or hubot-business-cat, which automatically listens for business jargons and posts memes.

In other words, the "scripts" are like plugins which teach your hubot new commands.

In bottery terms, it would be as if I can install a bottery-jenkins plugin of sorts which would add a bunch of new Patterns to my bot automatically.

I think it would be nice to be able to program reusable "scripts" or "plugins" that we can share in the bottery community.

nicoddemus avatar Oct 19 '17 22:10 nicoddemus

That's nice! I think that doing something like Hubot should be easy on Bottery.

rougeth avatar Oct 20 '17 14:10 rougeth