Giter Site home page Giter Site logo

metsrl / channel-rocketchat Goto Github PK

View Code? Open in Web Editor NEW
11.0 5.0 5.0 55 KB

Botpress 12.x.x / Rocket.Chat integration

License: GNU General Public License v3.0

HTML 4.82% TypeScript 86.18% JavaScript 6.06% Dockerfile 2.94%
botpressmodule botpress rocket rocketchat bots

channel-rocketchat's People

Contributors

arthurd2 avatar bollinim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

channel-rocketchat's Issues

Error while loading some modules, they will be disabled [ZlibError, zlib: unexpected end of file]

Hi Michele,
Yes I'm having the same problem but I guess is due another issue.
Build is ok:

[16:38:22] Starting 'build-module channel-rocketchat'...
[16:38:37] Finished 'build-module channel-rocketchat' after 15 s

Packing is generating a small issue:

[module-builder] Writing to "/bp/out/binaries/modules/channel-rocketchat.tgz"
[module-builder] Zipping 407 files...
[module-builder] Error packaging module: ELOOP: too many symbolic links encountered, stat '/bp/modules/channel-rocketchat/node_production_modules/asteroid/test/dist'  
[module-builder] Cleaning up temporary files...

[16:49:54] Finished 'package-module channel-rocketchat' after 8.42 s
[16:49:54] Starting 'package-module channel-slack'...
[module-builder] Installing production modules...
[module-builder] yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Rebuilding all packages...
Done in 16.92s.

Originally posted by @arthurd2 in #2 (comment)

How do we install it on Docker ?

Hey man, first of all: thanks for the module.

Question: There's a right way to install the module in Botpress?

I've try to:

  • Git clone in /botpress/modules/channel-rocketchat
  • Git clone in /botpress/data/assets/modules/channel-rocketchat
  • Put the project's TGZ in /botpress/modules/channel-rocketchat.tgz

But all leads me to one of the following errors:

Launcher Error while loading some modules, they will be disabled [VError, Could not find module at path "MODULES_ROOT/channel-rocketchat"],
VError: Could not find module at path "MODULES_ROOT/channel-rocketchat",
STACK TRACE

or

Launcher Error while loading some modules, they will be disabled [Error, Cannot find module '/botpress/modules/.cache/module__xxxxxx'],
Error: Cannot find module '/botpress/modules/.cache/module__xxxxxx'

I'm using Botpress 12.8.5 in Docker.

Build

Hi, when i try build final file, i have:

[21:55:18] Finished 'build-module channel-messenger' after 14 s
[21:55:18] Starting 'build-module channel-rocketchat'...

=======================================
Error building module /home/tomasz/projects/bots/botpress/modules/channel-rocketchat
=======================================
Status: error Command failed with exit code 1.

Output: info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
success Saved lockfile.
$ node ../../build/module-builder/bin/entry build --fail-on-error
[module-builder] [ERROR] in /home/tomasz/projects/bots/botpress/modules/channel-rocketchat/src/backend/client.ts (103,21)
                 TS2345: Argument of type '{ id: any; botId: string; channel: string; direction: "incoming"; payload: { text: any; user_info: { created: boolean; result: sdk.User; }; }; type: string; preview: any; target: any; }' is not assignable to parameter of type 'EventCtorArgs'.
  Object literal may only specify known properties, and 'id' does not exist in type 'EventCtorArgs'.
                 
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

[21:55:25] 'build-module channel-rocketchat' errored after 6.98 s
[21:55:25] Error: Command failed: cross-env npm_config_target_platform=darwin yarn  && yarn build --fail-on-error
error Command failed with exit code 1.

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:314:20)
    at ChildProcess.EventEmitter.emit (domain.js:506:15)
    at maybeClose (internal/child_process.js:1022:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
    at Process.callbackTrampoline (internal/async_hooks.js:126:14)
[21:55:25] 'build' errored after 4.57 min
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

"name": "botpress",
  "version": "12.22.1",

Fail to build channel-rocketchat module on Windows

Here's console logs:

=======================================
Error building module C:\Users\camel\Desktop\botpress\modules\channel-rocketchat

Status: error Command failed with exit code 1.

Output: info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
success Saved lockfile.
$ node ../../build/module-builder/bin/entry build --fail-on-error
[module-builder] [ERROR] in C:/Users/camel/Desktop/botpress/modules/channel-rocketchat/src/backend/client.ts (103,21)
TS2345: Argument of type '{ id: any; botId: string; channel: string; direction: "incoming"; payload: { text: any; user_info: { created: boolean; result: sdk.User; }; }; type: string; preview: any; target: any; }' is not assignable to parameter of type 'EventCtorArgs'.
Object literal may only specify known properties, and 'id' does not exist in type 'EventCtorArgs'.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

[11:43:03] 'build-module channel-rocketchat' errored after 30 s
[11:43:03] Error: Command failed: cross-env npm_config_target_platform=darwin yarn && yarn build --fail-on-error
error Command failed with exit code 1.

at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at ChildProcess.EventEmitter.emit (domain.js:499:23)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

[11:43:03] 'build' errored after 19 min
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

C:\Users\camel\Desktop\botpress>yarn -v
1.22.5

Please help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.