Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal hubot broken #13317

Closed
lennartgrunau opened this issue Feb 1, 2019 · 12 comments
Closed

Internal hubot broken #13317

lennartgrunau opened this issue Feb 1, 2019 · 12 comments

Comments

@lennartgrunau
Copy link

Description:

The internal Hubot is broken after the update to 0.73.2. It does not load any scripts and doesn't log anything at all.

Steps to reproduce:

  1. Go to Settings -> Internal Hubot
  2. Add some custom scripts
  3. Click Save
  4. Go To Settings -> View Logs
  5. See that nothing has been logged
  6. Test you scripts

Expected behavior:

Something in logs and working scripts

Actual behavior:

No logs, no working scripts

Server Setup Information:

  • Version of Rocket.Chat Server: 0.73.2
  • Operating System: Ubuntu 16.04.4 LTS
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: as shipped with snap
  • MongoDB Version: as shipped with snap

Additional context

Relevant logs:

No relevant logs

@jasonfah
Copy link

jasonfah commented Feb 2, 2019

Same for us. We ended up converting our hubot scripts to an app.

AFAIK it's being encouraged that you move away from the internal hubot and look at Apps or external hubot.

@lennartgrunau
Copy link
Author

@jasonfah The Problem is we're using the internal hubot to react to DMs between other People, not to the bot itself. The Rocketchat Hubot Adapter can't to that. If you got a solution for this, I'd happily give it a try.

@reetp
Copy link

reetp commented Feb 3, 2019

The external bot should be able to do anything the internal one can.
Just a case of scripting it?

@lennartgrunau
Copy link
Author

Sadly not, see RocketChat/hubot-rocketchat#274

@jasonfah
Copy link

jasonfah commented Feb 3, 2019

Could you tell us a little about what your hubot scripts were doing. Have you looked at the new app framework? Maybe it can do what you need.

@lennartgrunau
Copy link
Author

Sure thing, it's actually pretty simple: You send your colleague a $keyword via DM and the bot sends an answer into the Conversation between you and you colleague.
Background: $keyword triggers the bot which creates a meeting in an external conferencing system in the background, then posts the link to the meeting in the conversation.
Appreciate the help!

@jasonfah
Copy link

jasonfah commented Feb 3, 2019

That seems like it should be possible with the new app framework. Documentation is a bit hit and miss but the best advice I can give is to go to the marketplace and download a few apps. You can then unzip them and take a look at the source.

Maybe a slash command would work for you guys? The user could type /meeting and the app would do a http request to generate a new meeting/conference and posts the URL to the conversation.

Links:
https://github.com/RocketChat/Rocket.Chat.Apps-cli
https://rocketchat.github.io/Rocket.Chat.Apps-engine/classes/app.html
https://rocket.chat/marketplace
https://github.com/RocketChat/Rocket.Chat.Apps-engine

@lennartgrunau
Copy link
Author

Hi, sorry for the late reply. That seems to be a bit overkill for whats essentialy like 4 lines in coffeescript, doesn't it? Nevertheless, I'll check it out. Thanks.

@jasonfah
Copy link

jasonfah commented Feb 11, 2019

The cli does all the heavy lifting by generating the app for you. You may find you only need to add just as many lines of code for the app.

I agree with you though. The internal hubot was really handy for quick simple bot scripts. It's a shame that it just stopped working. Our rocket.chat server updated over the weekend to 0.74. I haven't checked yet if it's been fixed or not.

@lennartgrunau
Copy link
Author

After reading a metric ton of documentation, unpacking dozens of already existing apps and wrapping my poor sysadmin brain around typescript I was able to recreate the coffeescript bot with the apps framework. Thanks @jasonfah for pointing me in the right direction.

The internal hubot needs to be fixed, nevertheless.

@reetp
Copy link

reetp commented Feb 13, 2019

"The internal hubot needs to be fixed, nevertheless."

I think the general direction of travel is to remove the internal hubot in time. So it is unlikely to get fixed.

I think the devs are trying to move as many bits as possible outside of core RocketChat functionality hence Apps etc etc. as per the comment above from @jasonfah.

@lennartgrunau
Copy link
Author

Since the internal hubot has been removed from rocketchat, I'll close this issue. See #13522.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants