Skip to content

sittv/bookiebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

BookieBot

The bot that will come after you if you don't return what you borrow

BookieBot is a project to create an API and Slackbot to maintain the SITTV inventory.

This repository is merely an implementation of the Slackbot, most of it's core functionality is implemented as an API on the SITTV barcodes server.

Uses

  • Keep the books i.e. keep track of who has borrowed what and when it's due
  • Notification system to alert users when they never signed their equipment back in
  • Answer queries about what is due when
  • Maintain a registry of producers

Commands

List of commands for communicating with the BookieBot

current checkouts

List of all

Modifiers: group

help

Displays the following help message

current checkouts
help
info [<item>...]
status
update producers <new_producer> <production>
what does <user> owe?
what is due by <date>?
when is <item> due?
who has <item>?
who is producer of <production>?

info

Modifiers: after, before

make group <name> <item>...

> @bookie make group "news-std" "4k camera" "tripod"

New group created. 
Alias: "news-std"
Items:
    * 4k camera (barcode=...
    * Tripod (barcode=...

status

update producers <new_producer> <production>

> @bookie update producers "Eric Londres" "The Egress"
Eric Londres is now the producer of The Egress.

what does <user> have?

what is due by <date>?

Modifiers: group

when is <item> due?

who has <item>?

who is producer of <production>?

> @bookie who is the producer of The Egress?
Eric Londres is the producer of The Ergess.

Search modifiers

after:<date>

Arguments Default
YYYY-MM-DD, MM-DD None

before:<date>

Arguments Default
YYYY-MM-DD, MM-DD None

format

Arguments Default
spreadsheet, None None

If this argument is set to spreadsheet, then the bot will reply with a url to a spreadsheet where the information can be found.

group

Arguments Default
true, false, yes, no true

Whether to display individual items or groupings of checked out items

share

Arguments Default
@<username> None

Technical Details

  • Uses a Redis server to retain a sorted-set of checkouts by due-date timestamp

Contact

For more information, contact [email protected]

About

BookieBot - the Inventory Slackbot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published