astrocb / assumezero-bot Goto Github PK
View Code? Open in Web Editor NEWA Facebook Messenger bot for group chats.
License: MIT License
A Facebook Messenger bot for group chats.
License: MIT License
Detect mobile Wikipedia links for the Wikipedia passive message type and scrape it as a regular Wikipedia link
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): 12.18.2
engines.npm (package.json): unspecified (use default)
Resolving node version 12.18.2...
Downloading and installing node 12.18.2...
Using default npm version: 6.14.5
-----> Installing dependencies
Installing node modules
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/Schmavery/facebook-chat-api.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.gc0XK/_logs/2021-04-29T09_15_06_026Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
If you're stuck, please submit a ticket so we can help:
https://help.heroku.com/
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
Looking at the newly downloaded files is so confusing
Is there any video on how to set up bots to run?
If yes, please give me the link
2021-06-18T13:37:41.503517+00:00 app[web.1]: 0|assumezero-bot | ERR! login Error retrieving userID. This can be caused by a lot of things, including getting blocked by Facebook for logging in from an unknown location. Try logging in with a browser to verify.
2021-06-18T13:37:41.506181+00:00 app[web.1]: 0|assumezero-bot | Fatal error: failed login with credentials
2021-06-18T13:37:41.523727+00:00 app[web.1]: 0|assumezero-bot | ERR!
2021-06-18T13:37:41.524564+00:00 app[web.1]: 0|assumezero-bot |
2021-06-18T13:37:41.525342+00:00 app[web.1]: 0|assumezero-bot | login Error retrieving userID. This can be caused by a lot of things, including getting blocked by Facebook for logging in from an unknown location. Try logging in with a browser to verify.
2021-06-18T13:37:41.526170+00:00 app[web.1]: 0|assumezero-bot | Fatal error: failed login with credentials
Persistent scheduled events are now supported – update the remind
command to use this infra instead of an ephemeral timeout.
Some reminders may be created far in the future, such that the original context for the reminder has been forgotten. In addition to the current context message, the reminder should also reply to the earlier message (either the one which created the reminder, or one of the warning messages) so that it's easy to click on the replied message to scroll back for context.
undefined at Monday, February 8, 2021, 3:30 AM:
🎉
.
undefined at Monday, February 8, 2021, 3:18 AM:
To do the problem set, or not to do the problem set - that is the double-starred red question:
Whether 'tis nobler in the mind to bear the constant mental applied force of
The range equations of slings and arrows, the natural laws that cause outrageous fortune
Or to take pens against an endless sea of problems,
And by applying an equal and opposing force, end them. To sleep- to rest-
To draw force diagrams no more; and by at rest to say we have no more velocity
The headaches, the long, sleepless nights, and the thousand forces
That physics students are heir to. 'Tis a ending to the seemingly endless pain
Devoutly to be wish'd. To sleep- to rest.
To rest- perchance to dream: ay, there's the rub!
For in that comfort of sleep, what dreams may come
When we have shuffled off this problem set strife,
Must give us pause. There's the respect
That makes calamity of so hard a physics class.
For who would bear the horrors of AP Physics C,
Th' teacher’s insistence, the smart man's success,
The pangs of loathed rotation problems, the test grader’s delay,
The plummeting of grades, and the spurns
That desperate merit of th' genius takes,
When he himself might his final problem set make
With a mere guidance visit? Who would continue to bear the burden,
To grunt and cry and sharpen pencils under a sleepless life,
But that the dread of something without physics-
The undiscover'd country, from whose bourn
No force equation applies- puzzles the mind,
And makes us rather bear this problem set we have
Than fly to some other class that we know not of?
Thus physics does make cowards of us all,
And thus the immediate problem set
Is sicklied o'er with the pale cast of thoughts of physics,
And enterprises of great genius and sweat equity
With this regard their currents turn awry
And lose the name of physics.- Soft you now!
The masterful Shaw!- Sage, in thy gradingsBe all my mathematical errors and sig fig errors and my forgotten units and my lack of work be forgiven
— P. Ghoul, 2016
Convert AMP links to regular ones
Hi!
I have forked your repo and connected it to Heroku. I added memcachier and Heroku automatically copied environment variables in place. I added manually FACEBOOK_EMAIL and FACEBOOK_PASSWORD into environment variables. But the bot doesn't work. I see this "error retrieving userID" message in logs. Everything else seems to be working and it even starts up the bot server. My FB account works when testing it from my laptop manually.
Here are my environment variables, everything seems correct to me:
Affan Hussain at Wednesday, February 10, 2021, 11:09 AM:
@cameron why does the bot not find the people we're talking about?
Use same infra as events/reminders for timed kicks
The commands should be grouped into categories so that the physics help
message isn't so long and can be broken down into sub-menus.
I need help to install and login a bot
Larry Steele at Monday, February 8, 2021, 3:43 AM:
Questionable content
AssumeZero Bot at Wednesday, February 10, 2021, 8:16 PM:
Today's summary for USA
New cases today: 95,348
New cases yesterday: 95,360
Total cases: 27,895,756Deaths today: 3,260
Deaths yesterday: 3,131
Total deaths: 483,028Vaccinations today: 0
Vaccinations yesterday: 788,573Total recovered: 17,813,537
Test
AssumeZero Bot at Monday, February 8, 2021, 3:43 AM:
🌟
I have an error when run "npm start". I deploy it in the heroku. Im very interested with your bot.
Okay, so I've read all the previous issues and fixed few things by myself, but I just don't understand why does it happen. May be my r e a l l y small experience here.
2021-03-17T09:40:02.600715+00:00 app[web.1]: 0|assumezero-bot | code: 'MODULE_NOT_FOUND',
2021-03-17T09:40:02.600809+00:00 app[web.1]: 0|assumezero-bot | path: '/app/node_modules/messenger-botcore/package.json',
I got this error while the bot was deploying
the complete log:
-----> Building on the Heroku-20 stack
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): 12.18.2
engines.npm (package.json): unspecified (use default)
Resolving node version 12.18.2...
Downloading and installing node 12.18.2...
Using default npm version: 6.14.5
-----> Restoring cache
Cached directories were not restored due to a change in version of node, npm, yarn or stack
Module installation may take longer for this build
-----> Installing dependencies
Installing node modules
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/Schmavery/facebook-chat-api.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.wMef9/_logs/2021-02-13T20_13_27_425Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
If you're stuck, please submit a ticket so we can help:
https://help.heroku.com/
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
Cameron Bernhardt at Monday, February 8, 2021, 3:51 AM:
Should be good now
Cameron Bernhardt at Thursday, December 2, 2021, 9:38 PM:
Sending messages seems to be failing on the fb backend
Hi there. After some time trying to figure out how to actually deploy this app for testing on heroku before I even jump into the code, I finally figured out how to manually deploy it from github but I'm getting this error:
`-----> Installing dependencies
Installing node modules
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/Schmavery/facebook-chat-api.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.hIIoR/_logs/2021-11-20T12_55_50_264Z-debug.log
-----> Build failed
`
I had a quick look through the files and I couldn't see if there were any missing credentials to fetch the Facebook Chat API, any idea why this might be happening?
undefined at Monday, February 8, 2021, 3:33 AM:
Something sus
Currently only one mention group per message is supported
Cameron Bernhardt at Monday, February 8, 2021, 12:07 PM:
Larry Steele at Friday, March 19, 2021, 5:05 PM:
The engineering problem is that spongebob text is too time consuming to do for long messages on mobile
What if in the bot's pms I could have a command that would spit out the payload spongebob-ified
Update the bug
command to give more real-time info like thread IDs in the invoking chat (or split it off into a separate command).
Currently, the bug
command's intended use is for bug reporting, but it doesn't really get used for this – instead, it's mostly used for getting debug info like thread and user IDs. This can be spun off into a different command or the bug
command can be refactored to provide this information more easily without having to manually search through a dump of the groupInfo
obj pm'd to the maintainer on a physics bug
invocation.
Allow events created with physics event
to happen on a recurring basis.
Hi,
Where I will start to create my own command let say I only want to mention members that their nicknames start at "GOLD-" or "SILVER-"
so if I type physics @@all-gold or physics @@all-silver it will mention the specific members
Thanks!
undefined at Monday, February 8, 2021, 3:03 AM:
Today's summary for USA
New cases today: 0
New cases yesterday: 104,015
Total cases: 27,611,403Deaths today: 0
Deaths yesterday: 2,614
Total deaths: 474,933Vaccinations today: 0
Vaccinations yesterday: 2,218,752Total recovered: 17,354,388
Larry Steele at Monday, February 8, 2021, 3:45 AM:
🌟
getSeqId TypeError: Cannot read property 'successful_results' of undefined
ERR! getSeqId at /app/node_modules/facebook-chat-api/src/listenMqtt.js:532:41
...
The error came from facebook-chat-api
Cameron Bernhardt at Monday, February 8, 2021, 3:45 AM:
It's looking up the person who sent the react for that field
undefined at Monday, February 8, 2021, 3:03 AM:
Today's summary for USA
New cases today: 0
New cases yesterday: 104,015
Total cases: 27,611,403Deaths today: 0
Deaths yesterday: 2,614
Total deaths: 474,933Vaccinations today: 0
Vaccinations yesterday: 2,218,752Total recovered: 17,354,388
For the last few days, I've been experiencing this issue.
2020-09-11T04:30:49.340582+00:00 app[web.1]: Logging in with credentials...
2020-09-11T04:30:55.693878+00:00 app[web.1]: ERR! login login-approval
2020-09-11T04:30:55.694162+00:00 app[web.1]: Fatal error: failed login with credentials
Two of my dummy FB accounts are already blocked/disabled.
Do we have a workaround for this?
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.