Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Little help needed #11

Open
leovarmak opened this issue Apr 30, 2016 · 41 comments
Open

Little help needed #11

leovarmak opened this issue Apr 30, 2016 · 41 comments

Comments

@leovarmak
Copy link

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
Copy link

tipeveryday commented May 2, 2016

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
Copy link

My bot doesn't work:

https://github.com/rfitz9/RyanBot

@leovarmak
Copy link
Author

@Rfitz9 The link is broken !

@kazekagekorosu
Copy link

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

@Lukejsmith-yeahtips
Copy link

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
Copy link

@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
Copy link

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
Copy link

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" [email protected] 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
Copy link

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 [email protected] 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" [email protected] 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//issues/11#issuecomment-220610214]

@teekay88
Copy link

teekay88 commented May 29, 2016

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
Copy link

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 [email protected] 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//issues/11#issuecomment-222364344] , or mute the thread [https://github.com/notifications/unsubscribe/ASiS9AAIw3KxI35IOSUaqP7OKrF2LIyZks5qGaZkgaJpZM4ITU3m] .

@mauriziocassano
Copy link

mauriziocassano commented May 31, 2016

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)
[email protected] /tmp/build_8a3d741b0893f47ea6f2b0eb70b1a457/esthercrawford-EstherBot-0772fde
├── UNMET PEER DEPENDENCY [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ └── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected] (git+https://github.com/skhavari/smooch-bot.git#ccd2d634cdc6cb57caa710f597075f7ad7ce29eb)
│ └── UNMET PEER DEPENDENCY [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
└── [email protected]

-----> Caching build
Clearing previous node cache
Saving 2 cacheDirectories (default):
- node_modules
- bower_components (nothing to cache)
-----> Build succeeded!
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] (git+https://github.com/skhavari/smooch-bot.git#ccd2d634cdc6cb57caa710f597075f7ad7ce29eb)
└── [email protected]

-----> 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
Copy link

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
Copy link

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
Copy link

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

capture

@leovarmak
Copy link
Author

@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
Copy link

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
Copy link
Author

@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
Copy link

@leovarmak great support guys! ill be in touch

@rahul-thakoor
Copy link

@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
Copy link
Author

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 <[email protected]mailto:[email protected]> 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//issues/11#issuecomment-222903075, or mute the threadhttps://github.com/notifications/unsubscribe/ANexASJfquzf9wIq5sDKh7Ec8FwL5iuAks5qHSQOgaJpZM4ITU3m.

@rahul-thakoor
Copy link

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

@leovarmak
Copy link
Author

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 - [email protected]

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 <[email protected]mailto:[email protected]> 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//issues/11#issuecomment-222904009, or mute the threadhttps://github.com/notifications/unsubscribe/ANexAZeWmYgpw8kehVP6nG81-ZcPe0JJks5qHSWqgaJpZM4ITU3m.

@rahul-thakoor
Copy link

sent you an invite @leovarmak

@teekay88
Copy link

teekay88 commented Jun 1, 2016

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
Copy link

@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
Copy link

mauriziocassano commented Jun 1, 2016

@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
Copy link

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

@teekay88
Copy link

teekay88 commented Jun 6, 2016

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
Copy link

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
Copy link

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
Copy link

ghost commented Jul 6, 2016

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
Copy link

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):
- node_modules
- bower_components (not cached - skipping)
-----> Building dependencies
Installing node modules (package.json)
-----> Caching build
Clearing previous node cache
Saving 2 cacheDirectories (default):
- node_modules
- bower_components (nothing to cache)
-----> Build succeeded!
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] (git+https://github.com/skhavari/smooch-bot.git#ccd2d634cdc6cb57caa710f597075f7ad7ce29eb)
└── [email protected]

-----> 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
Copy link
Author

@bisaryan I see that its working !

@bisaryan
Copy link

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

@leovarmak
Copy link
Author

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

@bisaryan
Copy link

@leovarmak
Copy link
Author

@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
Copy link

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

@melaniebenn5
Copy link

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
Copy link

farrink commented Nov 16, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests