ans-group / basebot Goto Github PK
View Code? Open in Web Editor NEWA suite of tools for building virtual assistants and chatbots - by ANS Group
Home Page: https://ans-group.github.io/basebot/
License: MIT License
A suite of tools for building virtual assistants and chatbots - by ANS Group
Home Page: https://ans-group.github.io/basebot/
License: MIT License
Describe the bug
In basebot-core, the models extracted from middlewares are passed into the storage engine as an array of objects. But the storage engine expects a single object.
In the basebot-core init
function:
const logger = getSingleModule(config.logger)
const channels = getAllModules(config.channels)
const rawMiddleware = getAllModules(config.middleware)
const models = getAllModels(rawMiddleware)
const storage = getSingleModule(config.storage)({ logger, models: models })
const middleware = rawMiddleware.map(mw => mw({ storage, logger }))
const info = logger('core', 'info')
const { server, app } = Server({ logger })
const controllers = startChannels({ channels, storage, logger, server, app })
Should be:
const logger = getSingleModule(config.logger)
const channels = getAllModules(config.channels)
const rawMiddleware = getAllModules(config.middleware)
const models = getAllModels(rawMiddleware)
const storage = getSingleModule(config.storage)({ logger, models: Object.assign(...models) })
const middleware = rawMiddleware.map(mw => mw({ storage, logger }))
const info = logger('core', 'info')
const { server, app } = Server({ logger })
const controllers = startChannels({ channels, storage, logger, server, app })
Note the merging of the array of objects into one object with Object.assign(...models)
Source: https://github.com/ans-group/basebot/blob/master/packages/basebot-core/src/index.js#L11
This was observed when using the azure table storage engine
Describe the bug
The URL https://basebot.ans.tools is no longer accessible
To Reproduce
Steps to reproduce the behavior:
Hmmm… can't reach this pagebasebot.ans.tools’s server IP address could not be found.
ERR_NAME_NOT_RESOLVED
Expected behavior
Basebot documentation site loads
Desktop (please complete the following information):
Smartphone (please complete the following information):
At this line https://github.com/ans-group/basebot/blob/master/packages/basebot-core/src/applySkills.js#L45
The bot statically registers a default response. This should be configurable - either to disable it entirely, or change the message
Describe the bug
The console is polluted with "RESPONSE IS ...." making it difficult to see other log info.
Offending lines:
https://github.com/ans-group/basebot/blob/master/packages/basebot-controller-web/index.js#L258
Describe the bug
Frontend app is blank due to incorrect script path in basebot generator template
To Reproduce
npm i -g basebot-cli
basebot create
npm run dev
localhost:3000
and notice blank screenExpected behavior
Web page shows bot frontend app
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Describe the bug
Missing import for uuid
module in azure table storage module
This line makes reference to uuid
but the import is missing.
https://github.com/ans-group/basebot/blob/master/packages/basebot-storage-azuretables/index.js#L73
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.