I am working on a messenger bot for a group, that reacts to all messages that people type, unfortunately I don't have much experience with the messenger API, so I can't do it on my own. How can I do that?
There are not enough details to help you with your question
Start with the article that helps with process understanding, for
example:
Facebook Bots for fun and profit
Explore the official Facebook API documentation
Choose methods you would like to implement
Using programming language you know, try to implement this methods step-by-step, also you can find some working examples on GitHub
While having issues, try to find answers here on Stackoverflow, or google it - most of your questions are already solved by somebody
Good luck with your bot!
Related
Discord seems to be quite good (if a bit capricious) about unfurling links that a user posts in a channel, and also seems to be quite keen to support developers writing bots that act much like helpful users.
It's a bit weird then that it doesn't seem possible for links posted by bots to be unfurled in the same way.
I'm using this library https://github.com/andrejbauer/slack-to-discord to copy over channels from a free Slack instance we are abandoning in favor of Discord, but wish there was some way for unfurling to be done on the links users have previously posted. As far as I can see this is a historical shortcoming, Discord isn't interested in this working and there questions stretching back years and no answers.
The closest I can see is individual users attempting to do the unfurl links for their bots themselves, but that's really not a great choice and highly fragile IMHO.
Thanks if you have any clues for me to follow or I've somehow misjudged the current state of play and you have better information.
I don't believe discord supports stuff like that, and of course it's a pain to do anything manually, but I don't think it's possible to do this yet.
For the past years I've been connecting to Pardot with the usual email-password way that it is described at the pypardot documentation.
This obviously stopped working after the changes of Spring 21, but I cannot seem to find a good guide on alternative ways of connecting to the api.
I would appreciate some technical direction, examples or guides since documentations like this are too vague in my opinion and don't provide more practical help.
Thanks!
Now you need to get a Salesforce Access token prior to accessing the Pardot API.
I wrote a blog post on the details on what is needed to get connected, check it out: https://thespotforpardot.com/2021/02/02/pardot-api-and-getting-ready-with-salesforce-sso-users-part-3b-connecting-to-pardot-api-from-code/
Title - I don't have much experience and don't know where to start.
I have looked at many examples which haven't proved to be helpful - any help/suggestions welcome.
What you're looking for is <guild>.memberCount, which returns the number of your total members.
Docs for it are found here: https://discord.js.org/#/docs/main/stable/class/Guild?scrollTo=memberCount
var memberCount = guild.members.filter(member => !member.user.bot).size;
Read the documentation here. (Thanks Squiddleton)
I started programming Discord bots just a few months back, quite intriguing.
As for beginners, I would suggest going through this tutorial just for a headstart and then taking off yourself after learning the basics of discord.js and node.js.
If you face any issues while doing the same, you can ask your questions on Stack Overflow or search it on Google - you will find a lot of questions directly on the web.
The only reason why I wouldn't suggest Youtube tutorials for making Discord bots or programming anything is that it starts to turn into a habit and suppresses our natural instincts of discovering things. And trust me, discovering things yourself helps you a lot in the long run.
Even if you direly need to watch a video tutorial, try to pick up the basics from it and discover things, it's a lot more fun and the experience gained is incredible.
We are currently in the planning phases of a new Social Media app. We want to build it in React Native, due to working with javascript, etc.
Now I couldn't get a complete answer when looking online but I want to ask you, if there would be any legal issues if would ever go public and get any success, since we would be a direct competitor with Facebook.
If you have any advice about this I would be were happy to hear it.
https://github.com/facebook/react-native/blob/master/LICENSE, This is on facebooks' own account.
Also there are resources like this on the web https://www.quora.com/What-are-the-conditions-of-the-React-Native-license
I am considering to add a Blog on my GAE/J application and wondered what is the best way to do so.
Are there any implementations I can use?
Should I write something on my own?
I read about Microblog but it is written in python, I am not sure it will co-exists with my Java app.
Appreciate your thoughts.
While I don't know any implementations that you can use, this question is very broad and there are a lot of different things that you could do, and writing your own is one of them.
Just to begin with you could use the Blogger API to read the posts and present them in your app. By doing that you're able to add/modify/delete posts using the Blogger's UI and in your own app you will only present the posts. The only problem with this solution is regarding the comments, where you could implement your own (just to start somewhere) or include maybe the Facebook's Comments Box.
I did exactly that for the kiebdoj.com/blog/ and it saved me a lot of time for not implementing my own WYSIWYG editor or a post manager. That was written in Python, so I can't provide any examples, but in either case it wasn't written to work on it's own.