# Hubot rocketchat example in NodeJS with require

**URL:** <https://forums.rocket.chat/t/hubot-rocketchat-example-in-nodejs-with-require/11518>\
**Category:** Community Support\
**Created:** [June 29, 2021, 8:31pm UTC](https://forums.rocket.chat/t/hubot-rocketchat-example-in-nodejs-with-require/11518 "2021-06-29T20:31:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrieljesus](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gabrieljesus](https://forums.rocket.chat/u/gabrieljesus)\
**Post date:** [June 29, 2021, 8:31pm UTC](https://forums.rocket.chat/t/hubot-rocketchat-example-in-nodejs-with-require/11518/1 "2021-06-29T20:31:53Z")

</div>

### Description

Does anyone have a simple example of the hubot-rocketchat API in JavaScript (on nodeJS) with the import (which is guaranteed to be done using require)?

I looked for examples on the internet and I didn’t find in JS someone help me please?

(I know it’s not an issue, but I would like help).

I thank you in advance!

### 

Server Setup Information

- Version of Rocket.Chat Server: 3.13.2
- Operating System: Windowns 10
- NodeJS Version: 14.17.1

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 30, 2021, 8:53am UTC](https://forums.rocket.chat/t/hubot-rocketchat-example-in-nodejs-with-require/11518/2 "2021-06-30T08:53:21Z")

</div>

I’d start by looking here

> **[RocketChat/hubot-rocketchat](https://github.com/RocketChat/hubot-rocketchat)**
>
> Rocket.Chat Hubot adapter. Contribute to RocketChat/hubot-rocketchat development by creating an account on GitHub.
