probot-on-mention

1.0.3 • Public • Published

probot-on-mention

A Probot extension to trigger events when someone mentions a given username.

Example -

const onMention = require('probot-on-mention')
 
module.exports = (robot) => {
  onMention(robot)
  robot.on('mention', async context => {
    const username = context.payload.mentioned
    console.log(`${username} was mentioned!`)
  })
}

Install it with npm i probot-on-mention.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i probot-on-mention

    Weekly Downloads

    2

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    2.38 kB

    Total Files

    5

    Last publish

    Collaborators

    • itaditya