mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-05-30 00:03:48 +08:00
16 lines
368 B
Markdown
16 lines
368 B
Markdown
---
|
|
next: docs/development.md
|
|
---
|
|
|
|
# Hello World
|
|
|
|
A Probot plugin is just a [Node.js module](https://nodejs.org/api/modules.html) that exports a function:
|
|
|
|
```js
|
|
module.exports = robot => {
|
|
// your code here
|
|
};
|
|
```
|
|
|
|
The `robot` parameter is an instance of [`Robot`](https://probot.github.io/probot/latest/Robot.html) and gives you access to all of the bot goodness.
|