Git Product home page Git Product logo

qbot's Introduction

Qbot

What is it

A customized version of patHyatt's XmppBot-for-HipChat that manages the queue for a scarce resource (called the {baton}).

To use:

Qbot responds to the following commands:

command shortcut result
!dibs !+ Call dibs on the {baton}
!release !- Release the {baton} or rescind a dibs
!redibs !-+ Release and dibs combined as a courtesy
!steal !$ Take the {baton} from the current owner
!lock !@+ Lock the {baton} so no one else can call dibs
!unlock !@- Unlock the {baton}
!status !? Get the {baton} queue status
!help Get Qbot commands

Installation

You can run the bot as a console application, or you can install it as a Windows Service by running:

XmppBot.Service.exe install

For more info about installing as a service, see the TopShelf documentation.

Configuration

In addition to the XmppBot app configuration:

<add key="BatonName" value="resource" />

Issues

If you have an issue or identify a bug, please file an issue or create a pull request.

License

MIT

qbot's People

Contributors

hartez avatar hross avatar macterra avatar pathyatt avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

qbot's Issues

Add stats

Might be interesting to track

  • who had the baton the most, longest, shortest
  • when the baton is used
  • who stole the most
  • who locked the most
  • etc

Multi-resource room

Video has a use case where they have 2 resources and don't care which one comes free first so it would be desirable to call dibs on whichever comes free first.

DACbot should send reminders

If someone is in the queue for more than 5 minutes maybe the DAC should notify the current owner at 5 or 10 minute intervals, TBD.

Add reserve command

Something like:
!reserve at 4pm for 1 hour

DACbot might give the current owner of the DAC warnings at 15, 10 and 5 minutes before automatically stealing the DAC for the user with the reservation.

Acknowledge on delayed acquire

If a user acquires the resource by being next in line and there is someone else in line, then DACbot should say:

"@{User} the {baton} is yours! But since @{Next} is also waiting in line you have 60 seconds to call dibs before I automatically rescind for you."

If the user does not call dibs within the time limit then the current owner will be moved to the back of the line and the next user will acquire (starting this process again).

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.