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

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.

Related

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.

discord.py | Access user's connections via an individual OAuth link

Excuse me if I missed something and this is a duplicate, other QA's still left me with some questions.
I wanted to see if it was possible for my bot to access user connections (Steam acc, Reddit, etc.) so that the user can use a command to enable notifications in a specific channel, so that it would promote when they publish a video.
I've found similar bots, but they all required manual entering and they were admin-only.
I've found that it is NOT possible to directly access them (and rightfully so):
Unfortunately this is not possible when using a "real" bot account, however it is possible if you're using a user bot account.
I'd suggest a workaround of using OAuth2. You could have users authenticate your bot with OAuth2, and then fetch their connections this way. Some more information at https://discordapp.com/developers/docs/topics/oauth2
(Link: https://stackoverflow.com/a/44265167/16255372)
But that last statement about OAuth really got me wondering.
If it is required for each user to authenticate via a link, that is an acceptable compromise for me.
On the discord developers website, I've found a connections scope which would allow the bot to access the connections of the user that authenticated via the link.
I also found a url for getting the user's connections here
Get User Connections
GET /users/#me/connections
Returns a list of connection objects. Requires the connections OAuth2 scope.
But on other sources, I've seen that the scope is inaccessible to bots.
Furthermore, I don't see connections accessible in discord.py, which is what I use.
So my question is + TL;DR:
Is it possible to access the user's connections, even if they each have to click on an oauth link
(connections scope)
Would this be possible using discord.py?
(potentially using discord.ClientUser?)
Thank you for reading, I am also a new contributor. If you feel that I missed something or could elaborate or explain things better, please let me know how I could improve my question.
Is it possible to access the user's connections, even if they each have to click on an oauth link (connections scope)
YES (only possible using OAuth).
Would this be possible using discord.py? (potentially using discord.ClientUser?)
Unfortunately, no. Discord.PY does not support OAuth. You would have to do it yourself by creating a Web Application etc.

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

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

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.)

Resources