Commit Graph

36 Commits

Author SHA1 Message Date
Mahdi Dibaiee
cdb5adc71f feat(stop): ability to stop bot from listening on updates
resolve #12
2015-11-08 06:52:06 +03:30
Mahdi Dibaiee
c1c80f1b81 Fix #8 2015-07-27 09:25:27 +04:30
Mahdi Dibaiee
2dd3dd2e80 Avoid Listener leaks by setting a max answer threshold 2015-07-15 21:11:33 +04:30
Mahdi Dibaiee
532f54db54 If the response is not "ok", reject fetch 2015-07-13 05:36:36 +04:30
Mahdi Dibaiee
f88927e970 Fix args being empty 2015-07-09 16:07:08 +04:30
Mahdi Dibaiee
a9473d1ee8 Fix required arguments 2015-07-09 16:00:01 +04:30
Mahdi Dibaiee
41ca326173 feat: If a required argument is not supplied, ask for it and then resolve the command listener.
Thanks to @amovah for his contributions
2015-07-09 15:46:27 +04:30
2aaed21195 Ask for arguments 2015-07-09 14:26:17 +04:30
477f99b40c change return data in argument-parser. 2015-07-09 00:42:11 +04:30
Mahdi Dibaiee
bdfd4ee99d Don't process messages without a text 2015-07-07 03:13:33 +04:30
Mahdi Dibaiee
5c36581e08 Change 'word' argument type from \w to \s – resolves #6 2015-07-07 01:54:29 +04:30
Mahdi Dibaiee
9d470eed7d Remove console.log 2015-07-06 04:52:10 +04:30
Mahdi Dibaiee
b53817ced7 Switch from restler to unirest
restler is buggy and doesn't support utf8 multipart requests
2015-07-06 04:35:25 +04:30
Mahdi Dibaiee
bd4f0ed027 Add Argument Parser 💪 2015-07-05 18:06:27 +04:30
Mahdi Dibaiee
01ce3afbd2 Default timeout to 20 2015-07-05 15:41:22 +04:30
Mahdi Dibaiee
e036c11152 Fix long-polling 2015-07-05 15:38:07 +04:30
Mahdi Dibaiee
ac625708f9 Make sure we only strip username if it the message contains it 2015-07-05 00:25:07 +04:30
Mahdi Dibaiee
794ef80520 Should remove username from /command@username messages in groups 2015-07-05 00:05:58 +04:30
Mahdi Dibaiee
5fd35f89c1 Should only accept commands if the message starts with them 2015-07-04 23:57:00 +04:30
Mahdi Dibaiee
06bcc25801 Remove @JavaScriptBot from commands' responses 2015-07-04 20:03:21 +04:30
Mahdi Dibaiee
0981e2fb78 setMaxListeners to 100, version to 0.4.2 2015-07-04 15:48:07 +04:30
Mahdi Dibaiee
086614f1e7 DOCUMENTATION IS HEREEEEE, YAAAY ✌️ ✌️
+ Small fixes
2015-07-03 19:37:40 +04:30
Mahdi Dibaiee
da12078d73 Add BulkMessage Type 2015-07-03 17:36:07 +04:30
Mahdi Dibaiee
47947f5209 Added File Type 2015-07-03 03:03:22 +04:30
Mahdi Dibaiee
e2d34118da Switch from form-data to restler, a lot better :thumbs_up: 2015-07-03 02:19:36 +04:30
Mahdi Dibaiee
5336bfece8 remove console.log 2015-07-02 05:10:48 +04:30
Mahdi Dibaiee
4591ced347 Use FormData and multipart/form-data instead of application/urlencoded for requests 2015-07-02 05:10:13 +04:30
Mahdi Dibaiee
5f07eaa456 feat Types: Forward Type 2015-07-01 02:34:44 +04:30
Mahdi Dibaiee
b55fb3c7d6 Add support for WebHooks 2015-06-30 02:50:34 +04:30
Mahdi Dibaiee
714ffa9458 Fix promises getting rejected silently - Thanks to @joepie91
Fix bot not working properly in groups
Fix bot not answering properly
Bump to version 0.2.2
2015-06-29 05:30:29 +04:30
Mahdi Dibaiee
a8c4c0e33f Fix bot not working properly in groups
Change example a little bit
2015-06-29 04:19:09 +04:30
Mahdi Dibaiee
853145163c V2 - Big update 2015-06-29 03:12:48 +04:30
Mahdi Dibaiee
4d72d21c13 new version 2015-06-28 05:34:18 +04:30
Mahdi Dibaiee
b5f782edb6 Bug fixes, Demo added 2015-06-27 04:26:28 +04:30
Mahdi Dibaiee
9440d8be48 message should listen on replys instead of general messages 2015-06-27 03:03:30 +04:30
Mahdi Dibaiee
848ae4117c initial commit 2015-06-26 21:50:54 +04:30