chore: Rename robot to app

This commit is contained in:
Brandon Keepers
2018-06-01 16:17:49 -05:00
parent e047e9dc54
commit 4a228a824b
2 changed files with 4 additions and 4 deletions

View File

@@ -15,8 +15,8 @@ Advanced:
- docs/persistence.md
- docs/best-practices.md
Reference:
- title: robot
url: "https://probot.github.io/api/latest/Robot.html"
- title: app
url: "https://probot.github.io/api/latest/Application.html"
- title: context
url: "https://probot.github.io/api/latest/Context.html"
- title: context.github

View File

@@ -81,8 +81,8 @@ layout: default
<div class="col-md-6">
<div class="rounded-2 overflow-hidden border" style="margin-left: 60px;">
{% highlight javascript %}
module.exports = robot => {
robot.on('issues.opened', async context => {
module.exports = app => {
app.on('issues.opened', async context => {
const params = context.issue({
body: 'Hello World!'
});