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

Is this still working? #13

Closed
riskyprsty opened this issue Jul 2, 2020 · 6 comments
Closed

Is this still working? #13

riskyprsty opened this issue Jul 2, 2020 · 6 comments
Labels

Comments

@riskyprsty
Copy link

I have an error when run "npm start". I deploy it in the heroku. Im very interested with your bot.

@riskyprsty
Copy link
Author

Screenshot_2020-07-02-17-07-33
Screenshot_2020-07-02-17-07-04

Error logs

@AstroCB
Copy link
Owner

AstroCB commented Jul 3, 2020

Hi, thanks for the note! Yes, this bot is actively maintained and should still be in working order, although I haven't seen anyone configure a new instance from scratch in a while.

That error seems to be coming from one of the dependences rather than the bot itself, and looks to be a syntax error due to an outdated version of Node. You can remedy this by choosing a higher version of Node in Heroku (it looks like the spread operator is only fully supported in versions 8.3.0 and up).

Heroku may have given you version 8.0.0 by default, since that was the stable version when I initially created the bot and so that's what's listed in the package.json. I've bumped this version up to the current LTS, which is 12.18.2 – I would try forking this repo again and creating a fresh Heroku project, which should start you off with the right version this time.

@riskyprsty
Copy link
Author

thank you very much for your help, I really appreciate your work, this is very cool XD.
I'll try again, hopefully the problem is quickly resolved

@riskyprsty
Copy link
Author

I've tried it and worked to run npm start, also can log in. but the bot does not respond to commands, here is the logs

Screenshot_2020-07-03-12-30-53

@AstroCB
Copy link
Owner

AstroCB commented Jul 3, 2020

Great, seems like that fixed the issue! To proceed further, you'll need to actually configure the bot to log in with an account. Take a look at the setup instructions in the README.

Since you're using Heroku, this should be pretty easy – you just need to go to your settings tab in your Heroku project, and select "Reveal config vars" and then fill in the variables listed in the README. For just getting started, you only need a couple of them (but you'll need to add the rest later if you want all of the bot's commands to work):

env_vars

Fill in these keys and values – the FACEBOOK_EMAIL and FACEBOOK_PASSWORD are for the account that the bot is running on. To get the values for the MEMCACHIER_ variables, go to the Resources tab on your Heroku project and search for the MemCachier add-on, then add it. It should look like this:

Heroku add-on

Click on "MemCachier" and you'll be taken to the dashboard for your instance. Click on "Settings" in the sidebar on the left, and you'll see a page like this with all of the information that you need to fill in the config vars in Heroku (I've blocked out my info):

MemCachier dashboard

I hope this isn't too difficult since it seems like you're doing this on a phone! I promise these last few steps to get it running aren't too tricky despite the long-winded instructions.

@riskyprsty
Copy link
Author

Big thanks bro 👍😁

Repository owner deleted a comment from maihuybao Nov 25, 2020
Repository owner deleted a comment from BotolMehedi May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants