gfaraj / super-bot Goto Github PK
View Code? Open in Web Editor NEWA simple but extensible bot written in Node (with Whatsapp, Slack, and Discord interfaces)
License: MIT License
A simple but extensible bot written in Node (with Whatsapp, Slack, and Discord interfaces)
License: MIT License
I would like to send and receive multiple attachments to and from the bot service for processing. Commands that expect 1 attachment should continue to work.
When try start command "npm run start" get error
C:\super-bot-master\src\super-bot\SuperBot.js:47
commands = {};
^
SyntaxError: Unexpected token =
at new Script (vm.js:83:7)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start:node .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
Hello, i would like to set an caption in the attachment object for images.
Something like this:
bot.respond({ attachment: {
data: `data:image/jpeg;base64,${albumImage}`,
mimetype: 'image/jpeg',
//caption:`Album Image` <--------------
}});
I would like to pass the output of one command as the input of another command effortlessly.
One way that this can be implemented is similar to pipes in a command-line:
!translate es Hello, how are you? | translate en
The above example executes the first command - which translates "Hello, how are you?" into Spanish - and then pipes the response - "¿Hola, como estas?" to the next command in the pipeline. This would end up calling "translate en ¿Hola, como estas?" which would re-translate that to English.
You should be able to have more than one pipe in a single line.
If there are better ways of achieving something similar, we can discuss them as well.
I would like to send multiple messages to the bot service in the same request.
I would like to be able to run the bot service as a docker container.
The clients should be housed in their own repos.
Add support for natural language/conversations using Dialogflow.
There's currently a "natural" plugin but it does nothing interesting. It would be interesting to have an actual natural language agent tied to it.
Using dialogflow through NodeJs is trivial:
https://www.npmjs.com/package/dialogflow
Describe the bug
Error sending sticker (Store.CryptoLib.encryptE2EMedia is not a function)
To Reproduce
Steps to reproduce the behavior:
Sending a sticker.
Add ability to schedule recurring reminders to the reminders plugin.
This would probably be best implemented in a separate command like:
!remind
Example:
!remind 1w 1M Pay electric bill
This means: remind me to Pay electric bill in 1 week, and repeat every 1 month.
Use auth0 to make APIs secure by only allowing trusted clients to make requests.
Information:
https://auth0.com/blog/node-js-and-express-tutorial-building-and-securing-restful-apis/
Currently the Slack client can only handle text messages. I would like to be able to send and receive files while using the bot from Slack.
Hello i try to start but and dont know where i have to go to bot can read messages i run npm run start and it reply :
Starting SuperBot...
Loading plugins from path: C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\src\plugins
Loading plugin: admin.js...
Initializing plugin: admin.js...
Done plugin: admin.js...
Loading plugin: core.js...
Initializing plugin: core.js...
Done plugin: core.js...
Loading plugin: echo.js...
Initializing plugin: echo.js...
Done plugin: echo.js...
Loading plugin: evaluate.js...
Initializing plugin: evaluate.js...
Done plugin: evaluate.js...
Loading plugin: google.js...
Initializing plugin: google.js...
Done plugin: google.js...
Loading plugin: livescore.js...
Initializing plugin: livescore.js...
Done plugin: livescore.js...
Loading plugin: natural.js...
Initializing plugin: natural.js...
Done plugin: natural.js...
Loading plugin: poll.js...
Initializing plugin: poll.js...
Done plugin: poll.js...
Loading plugin: record.js...
Initializing plugin: record.js...
Done plugin: record.js...
Loading plugin: reminders.js...
Initializing plugin: reminders.js...
Done plugin: reminders.js...
Loading plugin: remove_bg.js...
Initializing plugin: remove_bg.js...
Done plugin: remove_bg.js...
Loading plugin: sticker.js...
Initializing plugin: sticker.js...
Done plugin: sticker.js...
Loading plugin: tell.js...
Initializing plugin: tell.js...
Done plugin: tell.js...
Loading plugin: translate.js...
Initializing plugin: translate.js...
Done plugin: translate.js...
Listening on port 3000
where i have to go to login with whatsapp?? thanks for help, and good project
i can't start the client for whatsapp because this give for me this following output:
Starting SuperBot for Whatsapp...
Loading WAPI...
Checking Whatsapp Web API...
(node:11348) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: window.WAPI.isReady is not a function
at puppeteer_evaluation_script:2:33
at ExecutionContext._evaluateInternal (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\node_modules\puppeteer\lib\ExecutionContext.js:122:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async ExecutionContext.evaluate (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\node_modules\puppeteer\lib\ExecutionContext.js:48:12)
at async WhatsappClient.start (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\clients\whatsapp\src\WhatsappClient.js:109:16)
at async main (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\clients\whatsapp\src\app.js:8:5)
-- ASYNC --
at ExecutionContext. (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\node_modules\puppeteer\lib\helper.js:111:15)
at DOMWorld.evaluate (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\node_modules\puppeteer\lib\DOMWorld.js:112:20)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
-- ASYNC --
at Frame. (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\node_modules\puppeteer\lib\helper.js:111:15)
at Page.evaluate (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\node_modules\puppeteer\lib\Page.js:833:43)
at Page. (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\node_modules\puppeteer\lib\helper.js:112:23)
at WhatsappClient.start (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\clients\whatsapp\src\WhatsappClient.js:109:32)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async main (C:\Users\subze\OneDrive\Área de Trabalho\super-bot-master\clients\whatsapp\src\app.js:8:5)
(node:11348) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11348) [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.
is it possible to correct? i was making AI modules,
A plugin for adding reminders would be good.
It should work by giving the following command:
!remindme 1w Pay the electric bill
It will allow the following time format:
1y2M3w4h10m
For specifying years, months, weeks, hours, and minutes in the future.
As a user, I would like to play a trivia game with my friends using this bot.
The following should start a trivia game for the "coding" category:
!trivia coding
When a trivia game is started, any subsequent command in that "chat" should be routed to the trivia plugin and handled as an answer.
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.