Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @barbershopio/sprucebot-skills-kit with all npm packages installed. Try it out:

@barbershopio/sprucebot-skills-kit lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("@barbershopio/sprucebot-skills-kit/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@barbershopio/sprucebot-skills-kit v6.6.1

The base template that drives your Sprucebot Skill! ⚙️🌲🤖

Your skill's title

Greenkeeper badge Describe the experience you wish to create from the perspective of the guest, owner, or teammate...

Technical overview

Describe how your skill works for anyone who may need to come in and maintain or add to it. Example; Hooks into did-enter and sends a message to a teammate.


  • vip - Tells us who to send to.


  • rewards - Does something else.

Sequelize Adapter

Allow your skill to an external sql database.

  • In .env enable with DB_ENABLED=true
  • Configure the DB_MIGRATIONS=true to enable automatically running migrations
  • Create server/models/Example.js from .example
  • Setup a migration to build the table in server/migrations/*_example.js#up() from .example

All of your models are available via koa ctx.db.models.Example.* and ctx.db.sequelize.*

We also ship with three "Core" models ctx.db.models.User ctx.db.models.Location ctx.db.models.UserLocation

Custom events

Describe any custom events your skill emits. Make sure you include whether or not it honors preventDefault and include the payload's schema.


Just before a vip alert is triggered when a guest or teammate arrives. Honors preventDefault. Mutate messages to your heart's content. Whatever messages you return will be what is sent.


        teammateId: UUID4, // teammate receiving the alert
        body: String // the message
        teammateId: UUID4, // teammate receiving the alert
        body: String // the message


This event can be configured to remind teammates to do something, or if none of the settings are set yet, remind the owner to either finish their settings or turn off the skill.


    teammate: ctx.event, // teammate receiving the alert
    body: String // the message


This is just a placeholder for now, put in yours! Honors preventDefault.


    hello: 'world'


  • Describe anything else dev's should know when working on your skill.


  • John Doe
  • Billy Joe
  • Tom Snow
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free