So recently, I set up a NodeJS bot to link messages between a Discord chat and a Skype chat. Now, I'm pretty new to Javascript, and entirely new to NodeJS, so luckily for me, there's a framework already made called Spype. The discord side works by using Discord's bot API, so that side works totally fine. The Skype side, on the other hand, uses Skyweb to connect to the Skype web client. Now, that's all well and good, except that it uses actual Skype accounts to log in, and you can no longer create actual Skype accounts, only Microsoft accounts. (Those are the ones that start with "live:".) The problem is that apparently, these two account types use different login methods. Now, try as I might, I have not been able to get the REST stuff to work for the Microsoft account login. This is probably due to my lack of expertise in that area.
So either I need to get Skyweb to log in to Microsoft accounts (this is probably the easiest option, I feel like it should be easy, I just can't get it), or change the bot to use a totally different authentication system.
I really hope someone can help with this. Let me know if I left out any information.
Skyweb has been updated, the issue has been fixed.
Related
I've seen someone around using their bot to reply inside a server as if the bot was just a normal user, i tried to look for something similar and the only thing i found is this:
https://github.com/ZomoXYZ/Discord-Bot-Client
Which is like having a separate client to use for your bot. I would like to know if we could just skip all that stuff and implement it in our own bot instead of using that as a secondary discord client.
Any suggestion or someone who achieved this and wanna share it or send it privately i'll be thankful.
EDIT: i'm sorry for the confusion but what i'm looking for is not a selfbot it is a way on using your own normal discord bot to be able to text and the example of that discord bot client is fairly what i'm trying to achieve. so let's say you made a new bot and invited it to your server, implementing a code where that bot is able to be used as a normal user-account and not a selfbot when you're using your own account.
After digging around, I think I have a good answer to your updated question. No, it is not against ToS as far as I have seen. I scrolled through dozens of articles that have said the same thing. It isn't against ToS directly (no, it doesn't fall under the self-bot category), but it is kind of on the edge. They don't say anywhere that you can't do it, and honestly it's not that different from using an eval command to send a message to a channel, except it is easier and looks better. Also there is also no reason as to why they should block it in the future. While with a self bot you can login and spam messages or dm advertise a bunch of members automatically, logging in to a bot account gives you a higher ratelimit for the same features you would get by just joining the server with your normal account. As for permissions, you can't do any more than you could by coding it, and the server admin that invited the bot gave it the permissions that it has. You aren't magically getting more of anything out of using a client such as Discord-Bot-Client or LiveBot. It just gives a better ui experience than using code to do the same thing. Sorry I'm late on this answer but I hope it helps anyone who clicks on this and sees it.
TL;DR: They didn't say its against ToS, and there isn't any reason it should be.
Note, this no longer works due to Discord.js API updates. I no longer use Discord.js, so I cannot tell you how to make a self bot. However; what lies below may still help you, but no longer is the answer.
-=-=-=-=-=-=-=-
Self Bots are NOT allowed.
(Link)
Self bot's used to be used and was just ignored by Discord but in the last year they've decided to enforce it. You may get your account banned by doing this. Just make and use a normal bot: https://discordapp.com/developers/applications/
How todo it anyways.
When you make your bot somewhere you need a bot.login(<key>) You just need to find YOUR key to have it run as a selfbot.
Note: this works on both the WEB version & the downloadable app.
Step 1:
Login into discord, navigate to a TextChannel so you can send a message. Open the CONSOLE by either CTRL-SHIFT-I for windows, and I assume but am not sure CMD-SHIFT-I for mac.
Head into the NETWORK tab. So you should see somthing like:
Step 2:
Click on the Ø (Circle w/ slash) to easier find what we're going todo next.
After you've cleared the network tab send a messaage into your channel and you should see 2 or more items pop up in the network tab, click on the first one that should say messages as it's name.
Step 3:
When you click on the messages item, you should open another tab inside the network tab Click on the HEADERS tab inside the new tab
After that scroll down until you reach "Request Headers" section. Under that section grab the "Authorization" Value
That value is what you use in your bot.login(<key>)
I can't guarantee this will work, as I haven't tried it recently, but this is what I know from doing it in the past and from what I know from other's expierences.
We've developed a bot for our website which is used as a sort of messenger, the user selects if they want to speak to our support or chat team and it routes them to the correct team. The chat escalation and chat service is provided by Live Assist.
After developing the bot locally, all seemed to work fine, however once we launched it live, we discovered that the bot is only allowed one conversation at a time through Live Assist. What happens is anyone who opens the chat, no matter which device, is apart of the same single instance conversation. We contacted Live Assist and they said we require multiple bots to handle multiple chat instances. They did link us to a few of their online resources but they did not provide any advice for this particular problem (which we assume is a common one?)
I've been scratching my head at how something like this could be implemented, we are able to host multiple bots on Azure but I am stumped at finding a way to cleanly poll a bot to see if a conversation is in progress without interrupting that particular conversation. The only resource found which may assist is here however it is in node.js, whereas our solution is JavaScript on the front end and the bot code is C# .Net.
Any guidance would be greatly appreciated. Many thanks.
Edit: To clarify, we are wondering if what we want is possible, if it is possible to have multiple azure bot framework instances and reach them all through javascript on a webpage, poll if a chat is active, and then use a free bot for the user.
In bot framework, there is no built-in feature to accomplish this since natively bot framework supports multiple concurrent conversations across all channels. As a workaround for the limitation of Live Assist let me share one idea I have.
You could in some sort of data store have a time that resets everytime a message is sent/received and once that timer expires that would qualify the bot as "not in a conversation". In this scenario when your webpage loads, it would ping your datastore to see which bot was available and if one is available, return the direct line secret token for the available bot. This would cause your front end to load up the chat for the correct bot. I do not have an implementation to share because I have never seen a scenario like this, but I hope this helps.
Hi so i'm very new to coding and have taught myself so please forgive me if this comes across as a really dumb question.
Basically I am building a web app, just something I want to try out. I have installed the meteor email package and follow the docs as well as I could, but all seem to involve running a smtp server such as mailgun.
I was wanting to find out if is there anyway to run a localhost version, I dont want to signup for things like mailgun at the moment I just want to testing the emails and have them send to my personal email. Is there a way or would I have to set up something through say mailgun?
Again sorry about what I am sure is a pretty simple answer, but all the googling I have done doesnt seem to help me get any closer to an answer.
Thanks in advance.
If you have Gmail account you can easily use it for sending emails. You have to set MAIL_URL variable, to something like that:
smtps://username%40gmail.com:password#smtp.gmail.com:465
At this moment although you have correct username and password you won't be able to send emails because of Google security rules. According to this answer you have to allow the less secure applications and allow access to your account. After this steps, you should be able to send emails from your Meteor application.
I'm trying to create a webpage that can incorporate LinkedIn info's (profile,people,company, etc...).
The things that it can/would do are the following:
When the user enters a name that is registered in LinkedIn, he gets the following
*Name, Company, Email
*List of LinkedIn messages that are waiting for reply
The same process goes on everytime the user adds a profile, I'm planning to use the Profile API of LinkedIn to get the Name, Company and Email but I can't find a working example to be my basis.
As for the 2nd one I still don't know how to get the LinkedIn messages.
Here's my Layout and expected result.
How can I achieved this? Opinions and Suggestions are highly appreciated tnx
This is far to broad a question for me to invest the necessary time in to figure the answers (multiple) for you, but do let me give you some hints. First of all, from my experience with the linkedin API not all the data you wish to access is available (do double check this though, I used the API quite awhile back and stuff might have changed in the meantime). As this data is not available through the API the only alternative would be to somehow bypass the cross domain policy, which in conclusion would require the user to install a chrome extension/firefox plugin which will function as a proxy for your application or even 'better', make you entire application a browser plugin based web app. Not that I am a fan of those whatsoever but if you application is meant in any way whatsoever as a linkedin (dedicated) plugin (probably as part of a greater service you're developing) then it might make most sense.
The whole system you are describing is very long winded and requires a large amount of development time. Alot of the data is not accessible directly or indirectly too. You cannot get email address's out from the API as a security feature (bots could just harvest emails for marketing campaigns).
First of all, you will need to make an application that allows for oAuth2 connections with the linkedin API service. People will log onto your website, click to join their linkedin account with your website and your website will receive back an access token to do the calls.
You will then need to build the queries which will access the data you require. The linkedin API documentation (http://developer.linkedin.com/) isn't greatly indepth but it gives you a good understand and points you where you need to go. There are also a couple of pre-done php API's around such as https://code.google.com/p/simple-linkedinphp/.
I have worked with many API's from twitters, facebooks and LinkedIn's and they all require a lot of back-end work to make sure that they are secure and get the correct data.
It would take me hours to go through exactly how to do it and has taken me many hours to get a solid implementation in place and working with all the different calls available.
If you have minimal coding knowledge, it would be best to go to an external company with a large amount of resources and knowledge in the field who can do it for you. Otherwise it may take many months to get a working prototype.
I'm trying to figure out if there is a way to use jWebSocket to send Push Notifications from a web form to the Apple APNS servers. I can't seem to figure it out, and there doesn't seem to be any information on how to go about this elsewhere. I am using an XQuery written web application so they don't seem to have a build in capability for sockets, hence jWebSocket.
Can anyone suggest a tutorial or provide information on whether this is possible?