Code Monkey home page Code Monkey logo

modules's Introduction

๐Ÿ“ฆ Official Botpress Modules

This repo contains all the official Botpress modules.


๐Ÿšง These are only meant to be compatible with Botpress X


Starting from Botpress X, modules are published on npm under the @botpress organization.

Contributing

Please follow the Conventional Commits specs when doing commits. PRs not respecting this commit style will be rejected.

Development steps

To modify, test or create modules, please install lerna.

Then run lerna bootstrap. This will initialize all modules and link them (using yarn link). Then in your bot, use yarn link @botpress/module-name to use the local version of that module.

Publishing changes (botpress team only)

Run ./push-changes.sh

modules's People

Contributors

djanowski avatar emirotin avatar epaminond avatar igauravsehrawat avatar ofelt avatar rayshih avatar slvnperron avatar ssmale avatar to7be avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

modules's Issues

Unable to use Botpress-Messenger with few users simultaneously

Hi team

I'm currently building a bot with Botpress and Messenger Module. I'm experiencing some trouble to get multiple users using the bot simultaneously. If two users are chatting with the bot at the same time, it answers one after the other, and then involves delay for the users. Any idea where does it come from?

Thx

Slack response missing when sending messages

Hi!
As of right now when I use for example bp.slack.sendText, its .then doesn't have access to the response from the Slack API, which is necessary for sending messages as threads when the original "parent" message has sent via bp.slack.sendText. I believe this is because you're using an outdated version of the @slack/client module.

[style] Add eslint rules for easier contribution

Hey team, botpress has linting rules .eslintrc and some scripts defined in package.json that makes contributing and styling a lot easier :)

I tried to copy those to botpress-modules and there are a lot of changes to do to comply with the same rules defined for botpress.

Should I do a PR adding the same .eslintrc found in botpress + the recommended fixes?

Telegram module error when reciving an image

this error message

11:32:22 - warn: Incoming queue failed to process job: Expected event to contain (type: string), (platform: string), (text: string), (raw: any)
11:32:22 - warn: Incoming queue failed to process job: Expected event to contain (type: string), (platform: string), (text: string), (raw: any)
11:32:22 - error: Retrying job within Incoming queue failed 2 times. Abandoning the job.```

Web Module : Not able to render stateful React Components

I need to create custom form components which will be used in my chat and shown to the client.
I see botpress webchat plugin only supports Presentational React Components.
As soon as I change presentational react components to ones having their own states, then the code breaks and is not able to load the components.

Kindly help resolve this.

slack auth error

get this error when i trying to connect

Passed URI : https://xxx.co.id/modules/botpress-slack
Allowed URI : https://xxx.co.id/modules/channel-slack

nlu module cannot load

I created a bot but when I want to run it, cannot obtain all modules. There are some errors about nlu module. I tried to repair npm but it does not work. I can open host addr but, there are not any modules.
Error is : Error loading module "@botpress/nlu": /home/alinail/my-bot/node_modules/webworker-threads/build/Release/WebWorkerThreads.node: undefined symbol:_ZN2v811ArrayBuffer9Allocator7ReserveEm
Also, after I used this command: npm install --save @botpress/nlu , came NLU(Beta) on my localhost. But it does not work, the module is empty
I dont know what can I do, do you have any idea?

Saving settings for channel-messenger - config.saveAll is not a function

I can't save my settings through the Dashboard, getting the following error on my logs:

TypeError: config.saveAll is not a function
    at /my-chatbot/node_modules/@botpress/channel-messenger/bin/webpack:/src/index.js:212:16
    at Layer.handle [as handle_request] (/my-chatbot/node_modules/express/lib/router/layer.js:95:5)
    at next (/my-chatbot/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/my-chatbot/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/my-chatbot/node_modules/express/lib/router/layer.js:95:5)
    at /my-chatbot/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/my-chatbot/node_modules/express/lib/router/index.js:335:12)
    at next (/my-chatbot/node_modules/express/lib/router/index.js:275:10)
    at /my-chatbot/node_modules/body-parser/lib/read.js:130:5
    at invokeCallback (/my-chatbot/node_modules/raw-body/index.js:224:16)
    at done (/my-chatbot/node_modules/raw-body/index.js:213:7)
    at IncomingMessage.onEnd (/my-chatbot/node_modules/raw-body/index.js:273:7)
    at emitNone (events.js:106:13)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)

Broadcasting: Invalid time value @ POST

Hello,

when I run the PUT on the API it works like a charm an returns the id:

api.put("botpress-broadcast/broadcasts", {
	date: "2018-04-04",
	time: "12:04:00",
	timezone: null,
	type: "text",
	content: "test put",
	filters: ["bp.users.hasTag(userId, 'TEST')"]
})

But performing a POST results in the error message below this snippet:

api.post("botpress-broadcast/broadcasts", {
	id: "80",
	date: "2018-04-04",
	time: "12:04:00",
	timezone: null,
	type: "text",
	content: "test post",
	filters: ["bp.users.hasTag(userId, 'TEST')"]
})

Error:

RangeError: Invalid time value
    at Date.toISOString (<anonymous>)
    at Object.dateFormat [as format] (webpack-internal:///5:23:52)
    at Object.updateSchedule (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/botpress-broadcast/bin/webpack:/src/db.js:70:28)
    at /Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/botpress-broadcast/bin/webpack:/src/index.js:61:10
    at Layer.handle [as handle_request] (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/layer.js:95:5)
    at next (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/layer.js:95:5)
    at /Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:275:10)
    at Function.handle (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:174:3)
    at router (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:47:12)
    at Layer.handle [as handle_request] (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:317:13)
    at /Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:275:10)
    at serveStatic (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/serve-static/index.js:75:16)
    at Layer.handle [as handle_request] (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:317:13)
    at /Users/tobiaswaitschies/Projects/nivea-marlies/node_modules/express/lib/router/index.js:284:7
ERROR:: undefined
Error with posting data broadcast_schedule: Error: Request failed with status code 500

Any ideas?
Thanks in advance!

UnhandledPromiseRejectionWarning: Unhandled promise rejection error

Hi
Getting this error

(node:5729) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```

after use this following code snippet on index.js file

const config = {
    botName: '<<REPLACE>>',
    botAvatarUrl: '<<REPLACE BY URL>>',
    botConvoTitle: '<<REPLACE>>',
    botConvoDescription: "<<REPLACE>>",
    backgroundColor: '#ffffff',
    textColorOnBackground: '#666666',
    foregroundColor: '#000000',
    textColorOnForeground: '#ffffff'
  }

  bp.createShortlink('chat', '/lite', {
    m: 'channel-web',
    v: 'fullscreen',
    options: JSON.stringify({ config: config })
  })

How to use carousel in botpress X

Hi,

We are wondering how to use carousel in channel-web
We tried to add a new Type in renderers.js like that :

'carousel-answer': data => ({ carousel: data.elements, typing: data.typing || '2s' }),
where elements is an array of object but it does not seem to work.

Would be awesome if you can share how to use it !

thanks in advance for your reply and also for the awesome job done with botpress X

Samy

[Telegram Module] : Runtime error promises cancellation

Hi !

I'm trying to install the official Telegram module for Botpress but facing an error at runtime.
I have installed the module with npm install @botpress/channel-telegram.

But when I run botpress I get the following error : error: Error loading module "@botpress/channel-telegram": cannot enable cancellation after promises are in use.

I am using Botpress 10.22.0
Has anyone faced the same problem ?

Thanks a lot in advance !

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.