How can I program a bot to check to see if a user is on a specific website? - discord

I have an official Discord server for a game and I want this bot to check to see if the user is on the game's website; if they are, they are given the role 'Currently Playing'; and when they come off the site, the role is removed.
I don't know if this is possible, but this would be extremely useful for so many people.

I don't think it will be possible without asking for more information, by design. It would be a privacy issue if you could.
Theoretically you could do it by having them type their username for the game or steam or whatever into the chat like
/gamebot #myusername
Now your bot could read that and now associate the discord account with the gamer account. You would then need an API from the game that's shows who is active and the bit can now know.

My interpretation of this question is that
If a player is on OnYourWebsite.com
It would say in their roles playing OnYourWebsite
This wouldn't really be possible unless you own the website or you are developing it. You could do this by using the Discord API this will let you create a discord sign in option.

Correct me if I am wrong,
but to directly check if a User is on a Website, you need the User´s IP address.
And you can´t get a Member´s IP address on Discord.
Another way could be rich presence, I know there are Rich Presences for Websites like YouTube, but I don´t know how they work.
Here is an example:
https://github.com/PreMiD/PreMiD
You need to install a Addon and install a program.
In this case, the Server Members would have to install a Addon and download a Programm , which you would have to program.
But, I dont know more about this topic.
This is all I have got.
(I would have commented this, but I don´t have enough reputation.)

Related

Is it possible to detect users click emoji on specific channel for specific server?

I think I need some answer from discord api experts.
I'm wondering if someone can detect using bots below logics.
If we enter the server, we will have initial channel. (for example Welcome)
There some rules will be described and we will have emojis like check / symbols for the server.
And after user click, bot can detect the user id and can send direct message to him/her.
Is it possible for the outside guy of the server? (I mean without any discord related api key)
Thanks
Since I don't have exp with this just went through the discord docs, but didn't find proper resources.

Can I create an app or a bot in discord that send messages as it was me?

I want an app/bot that reads the last message that were sent to a specific channel on a server that I participate and depending on the text I want to send a message to that same channel. The thing is, I want to do it in my name, not using a bot id. I know that you can create a bot using your own name and avatar but what I really want is to send a message using my own account. Is that possible? Could not find anything like that in the docs, maybe a missed something?
I do not think you are even allowed to do this so I doubt the discord API would have support for this
Discord Guidelines
"Do not use self-bots or user-bots. Each account must be associated with a human, not a bot. Self-bots put strain on Discord’s infrastructure and our ability to run our services. For more information, you can read our Developer Policies"
However, if you really wanted to do this you could use a macro at the risk of getting your account banned by discord if they found out. You could create a macro in python using the pyautogui module.

Automatically send messages as current user in discord

I'm new to discord.js but I would like to understand. Is it possible to achieve a functionality that would send message as my current user?
I mean for example I'm normal user on a discord server and I want to send randomly some jokes every day once. But this should happen from my current user, which has the discord name.
I know I can have a bot created and registered, but this is another approach I think.
My questions are: Is this achievable with discord.js or not really? Is this functionality achiavable at all? And where do I begin?
Thanks for any help.
It is possible. It's just like making a discord BOT. But rather than making a bot application and using its token, you just use YOUR token.
This is purely for educational purposes only, and you shouldn't use it for anything else. Everything is possible, especially with discord.js.
What you are describing is a "self-bot", and is against the Terms of Service. As such, it is not supported.
Discord has made an announcement regarding self-bots before.
Here is a relevant excerpt:
Automating normal user accounts (generally called "self-bots") outside
of the OAuth2/bot API is forbidden, and can result in an account
termination if found.

Making a batch mute bot for a voice channel to be accessible only by server admin

I am an admin for a small group discord server we use for among us. when playing between games we need to batch mute a whole voice channel as a lot of users in the voice channel cannot use push to talk. would it be possible to create a bot to batch mute all users in a voice channel, without affecting other channels (we sometimes have 2 simultaneous games) without having to go in, right-click a user & select server mute?
As a side note, I do not want to use any mute roles as a solution because any new role permissions only come into effect after a user leaves and rejoins a voice channel (which would not be possible for users on phones, needing to stay on the among us app)
I am very new to discord adminning (is that a word?) and have no prior bot experience but if there is any simple bots to add to the server it would help.
Thanks for any help!
This is indeed possible. You will first need to narrow down what
language you're interested in working with for this bot (I recommend
Python, Javascript also works well)
The documentation for Discord.py is extremely good. If you're
comfortable with Python, I'd say just jump right into it.
discordpy.readthedocs.io/en/latest/#documentation-contents You can
just skip the "Migrating to v1" section because it's not applicable to
you. You'll also want to actually make the Bot account:
discordpy.readthedocs.io/en/latest/discord.html
There are also no shortage of youtube tutorials for Discord.py. I've
never seen one I thought did well but they might help you understand
the basic structure of a bot script before you start searching the
API.
– Allister

Are these users bots or people?

I have a question about discord bots (well kind of). Recently people have been joining my server (the majority have dots in their user). Most of the time when they join, I am offline. They will send a message in about 5 channels in the server that say “my naked pictures” and with a hook up link. A lot of people in the server believe they are bots and I think that some of them are but I also believe some are not. Sometimes I’ll be online when they join and I’ll warn them “No naked pictures” or “Children under the age of 13 in the server” something like that. The ones I have had the chance to warn, didn’t send the links or any messages. They’ve just stayed in the sever until an admin banned them. The other thing is that I’ve read some things where it is not a bot unless it had the bold letters next to it that read “BOT”. None of the users have the “BOT” next to their user. So I’m very confused. Is this happening to anybody else and if it is, are they bots or people??
Bots are identified by a blue "Bot" tag next (not in) their username. Note that, as mentioned in the comments, a bot can run off a user's account, which won't have the bot tag. These are called userbots, and are against Discord's terms of service to operate. So yes, in your case those were bots running off of user accounts.

Resources