Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 832 Bytes

README.md

File metadata and controls

37 lines (30 loc) · 832 Bytes

Hubot

Add any script to the /scripts, and add any dependencies to package.json

iobot

Hubot for Riverside.io co-twerking space

Updating iobot:

iobot is on a heroku server. Ask someone for permission if you don't have it.
- Push code to heroku
- Restart heroku server
- $ heroku ps:scale web=1

Roles

Checking for a certain role is easy! We can get the user's role before executing any code by checking inside the msg object

  robot.respond /nest (s|set) (\d{2}).*/i, (msg) ->
    if 'nest' in msg.message.user.roles
      // change nest temperature
    else
      // talk to an admin

Setting a role is also easy! (Must be admin)

iobot *username* has nest role
>> Ok, *username* has the 'nest' role.

iobot *username* doesn't have nest role
>> Ok, *username* doesn't have 'nest' role.