GithubHelp home page GithubHelp logo

creisle / rocketchat_standup_bot Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 109 KB

Standup Bot for use with Rocketchat

License: MIT License

Shell 1.51% Batchfile 1.51% JavaScript 96.99%
bot hubot rocketchat-hubot rocketchat

rocketchat_standup_bot's Introduction

Hubot-Rocketchat StandUp Bot

This was built from https://github.com/RocketChat/hubot-rocketchat-boilerplate

This bot adds a standup functionality to any rocketchat chat room. Stand ups are initiate and members are pinged in direct messages to avoid spamming the channel. The result is posted back to the stand up room channel

Using the Bot

This bot adds up to 1 standup per chat room. If you want to use it with a private room you will need to add the bot user to the room.

Create a StandUp

In the room you want to run stand up from

bot show

This will show you the details of the current stanup in this room. If no one has joined the stand up and it has not been scheduled it will look something like this

Current Standup Settings

Members:

Currently not scheduled

Adding Members

To join the stanup, each user must run the following in the room

bot join

They should see a reply like the following

Added USERNAME to the list of standup members

After each member joins they should open a conversation with the bot and send a private message to ensure the channel is available for the bot to ping the user later

You can see the list of members joined by running the bot show command

Scheduling the Reminder

Stand up can be initiated manually from the room it is set in with

bot init

but it can also be scheduled to automate this process

bot sched

This will ask the user for days of the week and a time to run at. It will use these to set the cron-job reminder

Install Instructions (Developers)

git clone https://svn.bcgsc.ca/bitbucket/scm/dat/rocketchat_standup_bot.git
cd rocketchat_standup_bot
npm install

Create a .env file with content:

export ROCKETCHAT_URL=myserver.com
export ROCKETCHAT_USER=mybotuser
export ROCKETCHAT_PASSWORD=mypassword
export ROCKETCHAT_ROOM=general
export ROCKETCHAT_USESSL=false
export RESPOND_TO_DM=true
export HUBOT_ADAPTER=rocketchat
export HUBOT_ALIAS=bot

Adjust the content to fit your server and user credentials. Make sure myuser has BOT role on the server, if you don't know what that means, ask your server administrator to set it up for you.

Then run the bot:

npm start

On the server, login as a regular user (not the BOT user), go to GENERAL, and try:

bot help

Which will show you the available commands

Configuration

When running locally, we've used dotenv to load configs from the ./.env file. That makes it easy for setting environment variables.

rocketchat_standup_bot's People

Contributors

codazzis avatar creisle avatar dependabot[bot] avatar sing-li avatar timkinnane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rocketchat_standup_bot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.