How can I get message/reaction logs from Discord as triggers to a swift program? - swift

I'm currently looking to automate counting in Discord in Swift using keystrokes. The bot that registers the counting, however, has a small chance to not validate a number. To get around this, I am trying to use the check reaction, the validation from the bot, as a trigger to type the next number. Is there a way I can fetch the "reaction data" from discord to do so? Thanks!

Related

Does telethon telegram client has any command handler?

Does the telethon library supports any command handler such that I can build a telegram bot, and when someone types, lets say "/add 123" (both handling command and taking in argument), it would reply by 123?
I know there're many other libraries that are able to do it, for example pyrogram, telegram.ext. However, I'm already using a very specific functions within telethon, so I would like to add these new features to my bot with only telethon

Automatically make changes to a github file

I’ve Made an app whith a whitelist, the withelist is on a github repo ( with just one file that is the withelist ), Each time that a user that downloads my app want to be allowed to use the app has to send me a message for be inserted in the white list. Right now this process is really slow and I want to speed it up but I’m trying to figure out how. I’m sesrching a way for
Let the users send me a message
Read the message ( with a bot or something that automate this process )
Make the bot add the user to the whitelist
I’m having some troubles to find a ‘free’ way for do it. The first ideas that came in my mind were to do it with a discord server or a Telegram group, but i didn’t find something for make the bot able to commit changes to a github file. Another problem would be that this messages are readable by all the users becouse are sent in a discord/telegram group and I want to keep them private. There is some simpler ways for do something like this?

Firebase notifications Swift

Yes I know that this has been asked on StackOverflow before but I just can't find exactly what I am looking for. So what I would like is when a user (user1) send a message to another user (user2) , for user2 to get a notification saying they have a new message from user1. So far I have set my app up so that I can send a push notification from the Firebase Console, but not so that the app does it automatically. I think I need an observe function but I am not quite sure what to do or the code for it?
Thank you so much for all the help! This is my first time with Firebase.
You can just use Cloud Functions.
It simply triggers a Function when an Event occurs.
For example whenever a new message added to a node you can run a function that sends a Notification to the user
Check the Documentation
Also check this sample which matches what you need
I have asked same question some time ago. The thing that was bothering me was why should I use Cloud Functions and write and deploy functions for it in javascript if I just wanted to send Notifications just between two users?
So I checked out other options and setup everything in just about few minutes without writing any javascript functions in the Firebase Cloud Functions.
Well it depends on what you will exactly need but in my case using Cloud Functions just to handle that was nonsense. If you are in the same situation as I was you can use OneSignal like I did. There is also my question on this and you can check it out here.
you can try this it can worked for me sending notification through fire base cloud
https://github.com/firebase/quickstart-ios
https://github.com/firebase/quickstart-ios/issues/286#issuecomment-304992090

Getting 155 error notification (requests /sec ) reached (Unity)

I am developing an app with unity using parse. Now, I know I can increase the req/s limit but I wouldn't like to make it in advance. The question is : how can I get notified (email maybe) if the limit is reached at some point.
I first tried to get the 155 code and call a url from unity that than notifies my via script. Later I found out in Unity can only get error code -1 (Other cause); So i am looking for another solution, cloud code, parse sends me email.
I know I can access the data and see if the limit was reached in the dashboard but I cannot be watching that 24h a day (maybe there is any way to query that data?)
Thanks in Advance
not sure but you can use robot like script may be written in such a way which will keep hitting your dashboard and a check a specific parameter in the dashboard. Once the parameter excides some value it will trigger an automated email to you.
This is how we check the health of our application in terms of App up\App down\App usages.
Regards
Pawan

I'm trying to program a unique app, and use voice command to trigger specific functions within the app

If anyone can help me with this, I'd be eternally in their debt.
Without getting bogged down in details, I'm trying to program an app so
that, for instance, while the application is currently launched, if I say the words,
"activate function A", a specific function which already exists in my app, is activated.
Have I explained myself clearly? In other words, on the screen of the phone is a button
which says "function A". When the software is "armed" and in listening mode, I want
the user to have the ability to simply say the words "activate function A",
(or any other phrase of my choice) and the screen option will be selected without requiring
the user to press the button with their hand, but rather, the option is selected/activated
via voice command.
My programmers and I have faced difficulties incorporating this new voice command capability,
even though it is obviously possible to do google searches with voice command, for instance.
Other voice command apps are currently in circulation, such as SMS dictation apps,
email writing apps, etc, so it is clearly possible to create voice command apps.
Does anyone know if this is possible, and if so, do you have advice on how to implement
this function?
QUESTION 2
Assuming that we are unable to activate function A via voice command, is it possible
to use voice command to cause the phone to place a call, and this call is received
by our server? The server then 'pings' the iPhone and instructs it to activate function A?
For this workaround to work, I would need the ability to determine the exact phrase.
In other words, the user can't be forced to use the word "call function A". I need the
ability to select the phrase which launches the function.
Hopefully I've been clear.
In other words, as a potential workaround to the obstacles we've been facing regarding
using voice command to activate a specific function within our app, is it possible
to harness the voice command capability already present in the phone? aka, to place
a phone call? And then this call is received by our server, and the server
accordingly pings the phone which placed the call, and instructs it to activate the function?
I obviously understand the necessity for the app to be currently launched, before it
would be possible for my application to receive the instruction from the server.
If someone can help me to solve this vexing problem, it is not hyperbole to say that
you would change my life!
Thanks so much in advance for any help one of you kind souls can provide!!!
Michael
I don't believe the iPhone comes with any built in speech recognition functions. Consider speaking to Nuance about buying and embedding one of their speech recognition engines. They have DragonDictate for iPhone, but they also provide a fair amount of other recognition engines that serve different functions. Embedded solutions is clearly one of their areas of expertise.
Your other path of pushing the audio to your server may be more involved than you expect. Typically this process involves end-pointing (when is speech present) and identification of basic characteristics so the raw stream doesn't need to be passed. Again, investigation into the speech recognition engine you intend to use may provide you with the data processing details you need. Passing continuous, raw voice from all phones to your servers is probably not going to be practical.