Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 405 Bytes

File metadata and controls

19 lines (14 loc) · 405 Bytes

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.