Discord script to send private messages to friends without them being in a channel - scripting

I am running a business regarding selling/buying online things and I am mainly using Discord to contact my suppliers/clients. It grew quite tiresome to manually send private messages to each one of my suppliers, and to organize contacts with the current discord interface (outside of specific servers)
What I am interested in is: can I create a script that, when I run it, would send a private message to multiple people in my friends list (being given a list of discord names), WITHOUT using a discord server? The server/channel option is not viable for me, nor is using another app. I would start building that in any programming language, I am just interested if it's possible as I have found no information regarding it.

Unfortunately, Discord Accounts can only message other accounts that they're either in a server with or are friends with. Discord Bots can't add friends, and if they were in a server with all of your clients that would defeat the purpose. A hypothetical solution would be to invite all of them to a Discord Server with no text channels and then have the bot message them from there, which is 100% possible and would be really easy to do.

Related

Telegram Bot won't leave private chat

I created quite nice bot for telegram but facing now some issues with security. I want my bot to work only in certain group which i allow ( already done by group_id) but i want also to block option to write to my bot in private message. I could block adding to groups from BotFather options but still people can write to him in private messages.
I tried to use function when someone write to him:
bot.leave_chat(message.chat.id)
But bot still don't want to leave private conversation with people. How could I prevent in this or other way from adding my bot or trying to flood him with requests?
Technically it's not possible to forbid people to write messages directly to a Bot:
All bots, regardless of settings, will receive:
All service messages.
All messages from private chats with users.
All messages from channels where they are a member.
As per your question, I'd suggest to create a simple stub reply for private chats something like This Bot doesn't answer in private.
Leaving a chat might not "explain" people anything. I guess it rather will push them to try again and again, because it's not clear "Why bot disappears with no reason" ;)

How to chat and call automatically in MS Teams?

I'm working on a solution to build a system that automatically alerts users on Microsoft Teams. The order of execution will be:
Automatically scan alarm logs
Sort and send MS Teams messages to personnel for corresponding processing
If the processing staff does not receive the message, make a call on MS Teams to read the pre-recorded voice record.
I used python to automatically get the warning list, to send this alert list to the handler, I have tried MS Teams REST API but it only supports sending messages to Channel. How do I automatically chat and voice calls to an MS Teams user? Can chatbot help me with this problem? I see there are many types of bots that can be added to the conversation:
I think a chatbot is definitely the best way to deal with this. Essentially, you're wanting the bot to message a user on demand, which is something called "Proactive Messaging". You can read more here and here. There are a few things you need to know about this, but in a nutshell you need a way to specifically identify the user for sending the message, which you can get when the user first installs your bot (mostly you need "ServiceUrl" and "ConversationId").
With regards to knowing if the user has read the message, you might want to send an "adaptive card" with a button for the user to acknowledge that they've read the message, and if you don't get a callback within some time frame, start the voice call.

SMS authentication for a website

I'm looking to implement an SMS authentication for one of my projects, basically before a user is able to register an account with us, we would like to authenticate the user by sending sms containing a code to his mobile phone, and get him to put in the code in our form before he can proceed.
I've been looking around and found onVerify to be a pretty good way to go
http://www.onverify.com/
But I'd like to know if there're any other alternatives similar to onVerify as it is a bit expensive, so if I could go with cheaper one, that'd be great.
Thanks!
You can do this easily enough if you have access to an SMS provider.
Typically you send an SMS to the user by making an HTTP request, containing the verification code. You'd store this code, and the recipient number, in some persistent database, against which you can compare when they fill in the details on the form.
You don't mention which geographic regions you expect your users to be in, which can be important given the variable delivery quality in some markets.
Have a look at the HTTP API for BulkSMS, message pricing and coverage.
Note that you can register in various regions, if you, for example, want to price in USD.
Disclosure: I work at BulkSMS

API to create filter for free google app and gmail users

Is there a way to create a filter in gmail programatically for gmail users as well as for free google app accounts?
It seems that the e-mail settings API is only applicable for Google Apps for Business or Education accounts (http://support.google.com/a/bin/answer.py?hl=en&answer=60228).
Aayush.
I would like to know whether anybody knows the answer, because a good gmail filtering app is sorely needed for android users!
I looked everywhere and finally found this:
https://market.android.com/details?id=com.digitalchemy.springclean.gmail&rdid=com.digitalchemy.springclean.gmail&rdot=1#?enroll=yAb5pZ2MYWwmoft_rED3OYt6t0U%3D&purchaseButton=Dw2xBTSDPLCsKHcCnowBY0VcYUU%3D&addInstrument=NyJt6qfLAWzk-RVX01VtYp73FRg%3D
I don't like that it costs 3 dollars and uses 7megs of space. The source is closed, and I'm trying to guess how it does what it does.
This is the most recent link I've found as I try to make my own filtering app and service:
http://googlecode.blogspot.com/2010/03/oauth-access-to-imapsmtp-in-gmail.html
So, it appears that the API is (as you stated) for Business / Education accounts only, and Google doesn't support Sieve in their IMAP account - http://support.google.com/mail/bin/answer.py?hl=en&answer=78761
As I see it - your only option would be to create a custom IMAP client that creates & stores rules on your own server, and then manipulates the email locations "manually" - a rather taxing process if you ask me but doable :)
EDIT:
Here is a little tutorial using Zend_Mail for moving gmail emails via imap
http://www.devcha.com/2010/06/how-to-removemove-messages-using-zend.html

IOS implementation of simple messaging system (client/server) between clients

i've been looking around to find a simple library or a client/server sample code for implementing a messaging system between users of my IOS clients app and a REST server. I would need that each user has an incoming and sent messages view. This view would display the conversations grouped by user. For example, using a table view where each cell represent a thread between the 2 distinct users, selecting a user's conversation it would push a new view that would display all the messages between the two users.
I have to say that i didn't found much, this is a mix of libraries and front ends:
an XMPP objective-c library: https://github.com/robbiehanson/XMPPFramework, but i don't really want an IM behavior
Acani chat, https://github.com/acani/AcaniChat seems promising but waiting for the acani chat server, i could use the front end
another chat https://github.com/honcheng/iOS-nodechat
MailCore, an IMAP api for objective-c: https://github.com/mronge/mailcore . i would need to relay on a mail server, create emails for each user and ... too much!
too bad there isn't any iMessage API
dont want to send a SMS or an email
push notification it's not a must to start
maybe coding a simple REST service for publishing and retrieving messages to and from a user would be the best approach? i'm i missing something?
thanks!!