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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i probot-on-mention

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

2.38 kB

Total Files

5

Last publish

Collaborators

  • itaditya