groupme / bot-tutorial-nodejs Goto Github PK
View Code? Open in Web Editor NEWAn example bot callback server written in node.js and hosted on Heroku.
An example bot callback server written in node.js and hosted on Heroku.
I have worked a lot recently with building my own Python-based GroupMe bots. I think it would be great for this GroupMe GitHub organization to have another repository showing a Python implementation. Perhaps ruby too.
Fortunately, I have taken the liberty of making such a repository: https://github.com/ErikBoesen/bot-tutorial-python
I would love it if I could transfer that repository to the GroupMe GitHub organization. Please let me know if this would be possible!
Very last step says to run the command foreman start
every time I do this my PC gives me an error despite having the bot ID correctly set up.
I tried installing the following node package with no luck: https://github.com/strongloop/node-foreman
I'm a bit lost here ๐ I managed to get it to work on heroku but I'd very much like to run this locally while I code for it. Please let me know if I missed something obvious here.
I have also created a app using NodeJs and i wanna upload it to Herku hosting site. Can you please tell me how, or else mail me [email protected] please...
when trying to clone to local machine after setting up bot, the following appears:
warning: You appear to have cloned an empty repository.
What is the API for mentioning users with a bot?
I'm trying to mention specific users with a bot, but I am unable to do so. I am trying the below POST message body but the user isn't mentioned.
await axios({
method: "post",
url: GROUPME_API,
data: {
bot_id: botName,
text: " - you've been mentioned!",
attachments: [
{
type: "mentions",
user_ids: [1234, 4567],
loci: [[0, 0]],
},
],
},
})
I am expecting the above to send a message: @user - you've been mentioned!
but the @user
is not being added.
I think I followed the tutorial exactly, but when I executed:
"heroku git:clone MY_APP_NAME"
I ended up not getting any source files and instead saw this message:
"warning: You appear to have cloned an empty repository."
any ideas what could be causing this?
also very new to this stuff, what do i need to install to run foreman? (I'm on a Mac)
thanks!
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.