Socket
Socket
Sign inDemoInstall

serendipity-bot

Package Overview
Dependencies
85
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    serendipity-bot

Randomly pair people for 1-1 meetings


Version published
Maintainers
3
Install size
7.23 MB
Created

Readme

Source

Serendipity Bot

What is it?

Serendipity Bot randomly pairs people for 1-1 meetings. This is generally pleasant and productive in organizations larger than a handleful of people, and can be a great way to spread ideas and build relationships between team members.

How do I use it?

Install it

npm i -g serendipity-bot

Make a list of names

Save something like this to a file

Peter
Paul
Mary
John
George
Ringo
Keith
Mick

Note: if you're using Slack, you may want these to be Slack handles or emoji.

Run the script

####To log today's pairing: serendipity-bot [list_of_names_file]

####To post to Slack: You'll first need to get a token for your Slack account. serendipity-bot [list_of_names_file] --token [slack token] --channel [slack channel]

To see more options

serendipity-bot --help

What then?

Set up a cron job to run the script regularly! Our engineering team at ClassDojo runs the bot every Wednesday and Friday.

How does it work?

The script calculates all 2-combinations of team members and shuffles them deterministically. It also stores an integer index value in a file, whose name is generated by hashing the list of team members.

Whenever the script is run, the index is incremented (mod the number of combinations), and we pick the combination at that index. This way, we cycle through every pairing before repeating.

FAQs

Last updated on 21 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc