esthercrawford / EstherBot

Clone EstherBot to create your own version. Have fun! :)
MIT License
303 stars 1.09k forks source link

Little help needed #11

Open leovarmak opened 8 years ago

leovarmak commented 8 years ago

Hey, I am trying to make a bot following this. But there seems to be few errors. Can you please take a look at it. Please help me out https://github.com/valiantgaming/valiant-bot

tipeveryday commented 8 years ago

I'm also having issues with postbacks. The example repo seems to have removed how posts backs in buttons are fired.

Edit. I seemed to have figured this out. In the example: [Random Fact](postback:random_fact)

(postback:random_fact) does not fire a response from the bot. [Random Fact] The text between these "[]" needs ro be identical to the response.

Your response would look like this:

"RANDOM FACT":"Response from bot";

rfitzpatrickCO commented 8 years ago

My bot doesn't work:

https://github.com/rfitz9/RyanBot

leovarmak commented 8 years ago

@rfitz9 The link is broken !

kazekagekorosu commented 8 years ago

I've found the answer to the question about postbacks in issue 1: actionbuttons,

Lukejsmith-yeahtips commented 8 years ago

I have the bot up and running but I can't get it to synch or deploy to github for editing the jason script.https://lukebot.herokuapp.com/ I have it set up for auto deploy but it never deployed to git hub and I don't know where to edit the script file.

kazekagekorosu commented 8 years ago

@Lukejsmith-yeahtips maybe you missed some step? I'd check the autodeploy in heroku from github step again? or go back further, checking the api key from smooch.io is copied correctly to heroku and heroku is linked to YOUR github account. Ahh! also I never got the heroku link to work either... I copied the insert code from smooch.io and set it up on a free weebly i got, by inserting that code in to the header of a page. You might want to try that too.

Lukejsmith-yeahtips commented 8 years ago

Good advice and going to try a bunch of installs and see if I can get it working I figure I missed a step as well. Also looks like I need a lot of software on my Mac to get the terminal up and running - I am not a developer by the way but willing to try this to hack my resume.

rfitzpatrickCO commented 8 years ago

Check your config settings on heroku. One step I think should be more clear is that when you paste your KEY ID, don't include the "app_" part. And you shouldn't need any additional software for your Mac to get this running either. I'm not a developer either, but I've been able to edit my bot directly within github. If you do want to download an editor, try out Github's Atom - it's great!

On Thu, May 19, 2016 at 2:58 PM -0700, "Lukejsmith-yeahtips" notifications@github.com wrote:

Good advice and going to try a bunch of installs and see if I can get it

working I figure I missed a step as well. Also looks like I need a lot of

software on my Mac to get the terminal up and running - I am not a

developer by the way but willing to try this to hack my resume.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub

Lukejsmith-yeahtips commented 8 years ago

Thanks for this - I finally got everything sorted and am now able to make updates using the command line and also using Github Desktop. Having a blast now working on the bot conversation and look forward to going live on SMS and a few other channels. On Fri, May 20, 2016 at 6:48 AM, Ryan notifications@github.com wrote: Check your config settings on heroku. One step I think should be more clear is that when you paste your KEY ID, don't include the "app_" part. And you shouldn't need any additional software for your Mac to get this running either. I'm not a developer either, but I've been able to edit my bot directly within github. If you do want to download an editor, try out Github's Atom - it's great!

On Thu, May 19, 2016 at 2:58 PM -0700, "Lukejsmith-yeahtips" notifications@github.com wrote:

Good advice and going to try a bunch of installs and see if I can get it

working I figure I missed a step as well. Also looks like I need a lot of

software on my Mac to get the terminal up and running - I am not a

developer by the way but willing to try this to hack my resume.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub [https://github.com/esthercrawford/EstherBot/issues/11#issuecomment-220610214]

teekay88 commented 8 years ago

Hey everybody, I'm still having issues to get the imported bot going. I assume there are some issues with the api-setting or script, cuz neither seems to be running. The auto-deploy works, for example when I change something in the view file, it'll update the header of the html-code. https://bot-chat.herokuapp.com/

I added the KEY ID without the app_-part, so not what's the problem. Does anybody has a clue, what I missed? Help is much appreciated :-)

Lukejsmith-yeahtips commented 8 years ago

First off relax - and don't beat yourself up over this. Try a new install and follow the instructions to the letter sometimes that works best - I did the steps a few times and ultimately got things working from using the terminal and github desktop and it's been smooth sailing since. On Sun, May 29, 2016 at 7:44 AM, teekay88 notifications@github.com wrote: Hey everybody, I'm still having issues to get the imported bot going. I assume there are some issues with the api-setting or script, cuz neither seems to be running https://bot-chat.herokuapp.com/ [https://bot-chat.herokuapp.com/]

I added the KEY ID without the app_-part, so not what's the problem. Does anybody has a clue, what I missed?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub [https://github.com/esthercrawford/EstherBot/issues/11#issuecomment-222364344] , or mute the thread [https://github.com/notifications/unsubscribe/ASiS9AAIw3KxI35IOSUaqP7OKrF2LIyZks5qGaZkgaJpZM4ITU3m] .

mauriziocassano commented 8 years ago

Hi guys, I'm trying to install the bot but have some issues. I created a Smooch account and then linked just my telegram account (I previously created a bot on telegram as well). Then I created an Heroku account, followed all the steps, inserted the key without the app_ part but still got "Application Error" when I launch the app, as you can see here: https://mauriziocassano.herokuapp.com

If I read the log from heroku, I see an error on the field NPM_CONFIG_LOGLEVEL=error but not sure how to handle it. I'll paste here the log... do you have any idea how to solve it? Thank you!

-----> Node.js app detected -----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NPM_CONFIG_PRODUCTION=true
   NODE_ENV=production
   NODE_MODULES_CACHE=true

-----> Installing binaries engines.node (package.json): unspecified engines.npm (package.json): unspecified (use default)

   Resolving node version (latest stable) via semver.io...
   Downloading and installing node 5.11.1...
   Using default npm version: 3.8.6

-----> Restoring cache Skipping cache restore (new runtime signature) -----> Building dependencies Pruning any extraneous modules Installing node modules (package.json) smooch-bot-example@1.0.0 /tmp/build_8a3d741b0893f47ea6f2b0eb70b1a457/esthercrawford-EstherBot-0772fde ├── UNMET PEER DEPENDENCY babel-runtime@6.9.x ├─┬ body-parser@1.15.1 │ ├── bytes@2.3.0 │ ├── content-type@1.0.2 │ ├── debug@2.2.0 │ ├── depd@1.1.0 │ ├─┬ http-errors@1.4.0 │ │ ├── inherits@2.0.1 │ │ └── statuses@1.3.0 │ ├── iconv-lite@0.4.13 │ ├─┬ on-finished@2.3.0 │ │ └── ee-first@1.1.1 │ ├── qs@6.1.0 │ ├─┬ raw-body@2.1.6 │ │ └── unpipe@1.0.0 │ └─┬ type-is@1.6.13 │ ├── media-typer@0.3.0 │ └─┬ mime-types@2.1.11 │ └── mime-db@1.23.0 ├─┬ express@4.13.4 │ ├─┬ accepts@1.2.13 │ │ └── negotiator@0.5.3 │ ├── array-flatten@1.1.1 │ ├── content-disposition@0.5.1 │ ├── cookie@0.1.5 │ ├── cookie-signature@1.0.6 │ ├── escape-html@1.0.3 │ ├── etag@1.7.0 │ ├── finalhandler@0.4.1 │ ├── fresh@0.3.0 │ ├── merge-descriptors@1.0.1 │ ├── methods@1.1.2 │ ├── parseurl@1.3.1 │ ├── path-to-regexp@0.1.7 │ ├─┬ proxy-addr@1.0.10 │ │ ├── forwarded@0.1.0 │ │ └── ipaddr.js@1.0.5 │ ├── qs@4.0.0 │ ├── range-parser@1.0.3 │ ├─┬ send@0.13.1 │ │ ├── destroy@1.0.4 │ │ ├── http-errors@1.3.1 │ │ ├── mime@1.3.4 │ │ └── statuses@1.2.1 │ ├─┬ serve-static@1.10.3 │ │ └─┬ send@0.13.2 │ │ ├── http-errors@1.3.1 │ │ └── statuses@1.2.1 │ ├── utils-merge@1.0.0 │ └── vary@1.0.1 ├─┬ hbs@4.0.0 │ ├─┬ handlebars@4.0.3 │ │ ├── async@1.5.2 │ │ ├─┬ optimist@0.6.1 │ │ │ ├── minimist@0.0.10 │ │ │ └── wordwrap@0.0.3 │ │ ├─┬ source-map@0.4.4 │ │ │ └── amdefine@1.0.0 │ │ └─┬ uglify-js@2.4.24 │ │ ├── async@0.2.10 │ │ ├── source-map@0.1.34 │ │ ├── uglify-to-browserify@1.0.2 │ │ └─┬ yargs@3.5.4 │ │ ├── camelcase@1.2.1 │ │ ├── decamelize@1.2.0 │ │ ├── window-size@0.1.0 │ │ └── wordwrap@0.0.2 │ └─┬ walk@2.2.1 │ └─┬ forEachAsync@2.2.1 │ └── sequence@2.2.1 ├─┬ jsonwebtoken@5.7.0 │ ├─┬ jws@3.1.3 │ │ ├─┬ base64url@1.0.6 │ │ │ ├─┬ concat-stream@1.4.10 │ │ │ │ ├─┬ readable-stream@1.1.14 │ │ │ │ │ ├── core-util-is@1.0.2 │ │ │ │ │ ├── isarray@0.0.1 │ │ │ │ │ └── string_decoder@0.10.31 │ │ │ │ └── typedarray@0.0.6 │ │ │ └─┬ meow@2.0.0 │ │ │ ├─┬ camelcase-keys@1.0.0 │ │ │ │ └── map-obj@1.0.1 │ │ │ ├─┬ indent-string@1.2.2 │ │ │ │ ├── get-stdin@4.0.1 │ │ │ │ ├── minimist@1.2.0 │ │ │ │ └─┬ repeating@1.1.3 │ │ │ │ └─┬ is-finite@1.0.1 │ │ │ │ └── number-is-nan@1.0.0 │ │ │ ├── minimist@1.2.0 │ │ │ └── object-assign@1.0.0 │ │ └─┬ jwa@1.1.3 │ │ ├── buffer-equal-constant-time@1.0.1 │ │ └─┬ ecdsa-sig-formatter@1.0.5 │ │ └── base64-url@1.2.2 │ ├── ms@0.7.1 │ └── xtend@4.0.1 ├── lodash@4.13.1 ├─┬ smooch-bot@1.0.1 (git+https://github.com/skhavari/smooch-bot.git#ccd2d634cdc6cb57caa710f597075f7ad7ce29eb) │ └── UNMET PEER DEPENDENCY babel-runtime@6.9.x └─┬ smooch-core@1.2.1 ├─┬ form-data@0.2.0 │ ├── async@0.9.2 │ ├─┬ combined-stream@0.0.7 │ │ └── delayed-stream@0.0.5 │ └─┬ mime-types@2.0.14 │ └── mime-db@1.12.0 ├─┬ isomorphic-fetch@2.2.0 │ ├─┬ node-fetch@1.5.3 │ │ ├── encoding@0.1.12 │ │ └── is-stream@1.1.0 │ └── whatwg-fetch@1.0.0 └── jsonwebtoken@5.4.1

-----> Caching build Clearing previous node cache Saving 2 cacheDirectories (default):

-----> Discovering process types Procfile declares types -> (none) Default types for buildpack -> web -----> Compressing... Done: 19.2M -----> Launching... Released v4 https://mauriziocassano.herokuapp.com/ deployed to Heroku

mauriziocassano commented 8 years ago

I tried the Smooch bot sample and actually it works!

So I tried to use the EstherBot on my HD, cloning it and makes it work by installing npm as stated in the Smooch Bot readme file. It works on my local machine with "node console" command, but I'm not able to push it on Heroku and make it works.

I think in the EsterBot files probably there is this npm thing that is missing...

rahul-thakoor commented 8 years ago

similar problem! somethings is broken! i followed the tutorial to the letter! im able to use smooch bot example, it returns the script in messages(web). however using the script.js and script.json breaks everything. i tried a lot of times with different combinations such as forking smooch example then just changing script.js etc however as soon as i change i get "application error". any clue? i believe using the json version is easier.

nigelburke commented 8 years ago

Are you config variables on the heroku settings pages like this?

capture

leovarmak commented 8 years ago

@rahul-thakoor I am the one who opened this Issue. Later I was able to sort all the issues out. Why don't you try to fork my repo and try ? Here is the link https://github.com/valiantgaming/valiant-bot . Did you configure your settings as @nigelburke showed on top ?

rahul-thakoor commented 8 years ago

yes, all my settings are like this. ill try to fork yours! thanks for the quick response. do i need to change aby settings on the github code besides the script json ofcourse

leovarmak commented 8 years ago

@rahul-thakoor I would say first see if it works without changing anything anywhere. Then later on you can change. I am free so you ping me if you get across anything :)

rahul-thakoor commented 8 years ago

@leovarmak great support guys! ill be in touch

rahul-thakoor commented 8 years ago

@leovarmak still no luck :( Let me summarise:

  1. Create an app in smooch an generate app token + secret keys etc
  2. click deploy button from readme of forked project
  3. input settings in heroku app created by deploy button
  4. add SERVICE_URL
  5. change deploy settings to github However i still get error screen shot 2016-06-01 at 14 11 35 screen shot 2016-06-01 at 14 11 51 screen shot 2016-06-01 at 14 12 42 screen shot 2016-06-01 at 14 11 45

What am I doing wrong?

leovarmak commented 8 years ago

Is there any other platform where I could contact you ? preferably facebook ?

via CloudMagic Emailhttps://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.4.48&pv=4.1.1&source=email_footer_2 On Wed, Jun 01, 2016 at 11:47 AM, rahul-thakoor notifications@github.com<mailto:notifications@github.com> wrote:

@leovarmakhttps://github.com/leovarmak still no luck :( Let me summarise:

  1. Create an app in smooch an generate app token + secret keys etc
  2. click deploy button from readme of forked project
  3. input settings in heroku app created by deploy button
  4. add SERVICE_URL
  5. change deploy settings to github However i still get error [screen shot 2016-06-01 at 14 11 35]https://cloud.githubusercontent.com/assets/13220877/15699952/8662e578-2803-11e6-94b0-d842ee5affb2.png [screen shot 2016-06-01 at 14 11 51]https://cloud.githubusercontent.com/assets/13220877/15699953/8992ce34-2803-11e6-93e5-36ac149c176d.png [screen shot 2016-06-01 at 14 12 42]https://cloud.githubusercontent.com/assets/13220877/15699963/8bff44d6-2803-11e6-88a4-209f23d49dd6.png [screen shot 2016-06-01 at 14 11 45]https://cloud.githubusercontent.com/assets/13220877/15699966/8f27168e-2803-11e6-9a84-c13b3b1e3c0b.png

What am I doing wrong?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/esthercrawford/EstherBot/issues/11#issuecomment-222903075, or mute the threadhttps://github.com/notifications/unsubscribe/ANexASJfquzf9wIq5sDKh7Ec8FwL5iuAks5qHSQOgaJpZM4ITU3m.

rahul-thakoor commented 8 years ago

sorry I live in Mainland China, no facebook! slack?

leovarmak commented 8 years ago

Sure. Send me your email so that I can send you a request into my organization :-) . Our if you already have something here is my email - leovarmak@hotmail.com

via CloudMagic Emailhttps://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.4.48&pv=4.1.1&source=email_footer_2 On Wed, Jun 01, 2016 at 11:54 AM, rahul-thakoor notifications@github.com<mailto:notifications@github.com> wrote:

sorry I live in Mainland China, no facebook! slack?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/esthercrawford/EstherBot/issues/11#issuecomment-222904009, or mute the threadhttps://github.com/notifications/unsubscribe/ANexAZeWmYgpw8kehVP6nG81-ZcPe0JJks5qHSWqgaJpZM4ITU3m.

rahul-thakoor commented 8 years ago

sent you an invite @leovarmak

teekay88 commented 8 years ago

I'm gonna try to fork leovarmak's code,try different things and see if I have any luck with that. @leovarmak May I contact you, if I may need help at the end?

rahul-thakoor commented 8 years ago

@teekay88 we just had a chat! maybe you can try on your end. but @leovarmak told me that he is also getting the error and will look in the matter soon

mauriziocassano commented 8 years ago

@nigelburke yes, my variables are exactly like that! @leovarmak I also tried to fork another people repository and same issue there! @rahul-thakoor I see your summary but I don't get the point n. 6, what do you mean for change deploy setting on GitHub? Do you mean connecting my own repository to automatically push any update?

Btw I tried several things yesterday:

1) I tried to fork the Smooch Bot Example and it worked very fine! 2) I tried to download the Esther's Bot on my HDD, and follow the instruction on the Smooch Bot Example (using $ npm install and then $ node console) and actually the Ester's Bot worked on my PC! I can interact with it on the terminal app... so it seems that the code works, but there is something wrong when we deploy it on Heroku!

Any clue on this? Thank you guys for you help!

rahul-thakoor commented 8 years ago

Anybody solved this? I am using smooch bot example and it is very difficult to set up conversation using only code!

teekay88 commented 8 years ago

nope...still not working. A few days ago I could run the interface of the app, but now I got the same error-screen. Tried to fork from other people, but still not success.

user-359 commented 8 years ago

I forked from both Smooch-bot-example and Esterbot and my both won't respond. From all the comments, it seems like Smooch-bot just suddenly stopped working. I wonder is there a conspiracy (Smooch shut it down cuz' Esterbot author trying to monetize smooch's work?)?

kazekagekorosu commented 8 years ago

Mine's still working. I don't know what a HDD is, and the heroku link didn't work, but I did get it to work by copying the code from smoochbot into a header of a weekly website. The github update to heroku works that way for me too. I don't know what npm install of $ node are...i didn't need that to make it work, the page i copied was older and didn't use any of this stuff...which i think is confusing as hell unless your a nom install $ node ninja?

ghost commented 8 years ago

Hi Folks. I have created my own Bot MarkyBot (@LikeMarkyBot) on FaceBook. I'm really enjoying playing with this new Tech. I have one issue. Sometimes my Bot spits out the same reply 2 or 3 times! Does anyone here know how it correct this?

Thanks a mil. From the comments I've been reading there is a great support network here.

All the Best, MarkyBot (feel free to chat with mine)

bisaryan commented 8 years ago

I forked from the Esterbot and my bot won't respond. I created an Heroku account, followed all the steps, in the README doc. I edited the script.json and script.js and double checked: https://github.com/SaaSrite/glengarryross

When I go to my app and try to test out the bot it does not respond: https://glengarryross.herokuapp.com/

If I read the log from heroku, I see an error on the field NPM_CONFIG_LOGLEVEL=error but not sure how to handle it.

@leovarmak @mauriziocassano from the previous comments it looks like you figured this out? can you help?

-----> Using set buildpack heroku/nodejs -----> Node.js app detected -----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NPM_CONFIG_PRODUCTION=true
   NODE_ENV=production
   NODE_MODULES_CACHE=true

-----> Installing binaries engines.node (package.json): unspecified engines.npm (package.json): unspecified (use default)

   Resolving node version (latest stable) via semver.io...
   Downloading and installing node 5.11.1...
   Using default npm version: 3.8.6

-----> Restoring cache Loading 2 from cacheDirectories (default):

-----> Discovering process types Procfile declares types -> (none) Default types for buildpack -> web -----> Compressing... Done: 18.9M -----> Launching... Released v13 https://glengarryross.herokuapp.com/ deployed to Heroku

leovarmak commented 8 years ago

@bisaryan I see that its working !

bisaryan commented 8 years ago

@leovarmak thx for the reply. can you share a screenshot of what the bot replied?

leovarmak commented 8 years ago

@bisaryan Actaully the bot didnt reply anything. Can I see your repo ? maybe some programming error ?

bisaryan commented 8 years ago

@leovarmak https://github.com/SaaSrite/glengarryross

leovarmak commented 8 years ago

@bisaryan Wow. Actually the bot should start the coversation with So you want to learn about Glengarryross? Just say HELLO to get started. . I have no idea as to why Hi how can I help? this message shows up ! Any clues ?

bisaryan commented 8 years ago

nope @leovarmak only edited script.js and script.json - was expecting to see an exchange that i created in script.json

melaniebenn5 commented 7 years ago

Hello, I am trying to create a bot resume with the README document of EstherBot, but I am facing issues with the deployment of the Smooch App with Heroku. Could you please help me? Thanks.

farrink commented 6 years ago

did you ever figure it out? I'm having trouble deploying