Discord.py Game Bot Tutorial #3| Reaction Roles (2020)

  Рет қаралды 14,753

ExceedCoding

ExceedCoding

Күн бұрын

Hey so today we are going over adding and removing roles based on user reactions alongside going a bit more in-depth with embed messages
Hey guys!, join my discord bot to play around with the Tic-Tac-Toe Game!
/ discord
Steps to get Message ID
1) Turn on Developer Mode in discord to get message IDs:
-Settings - Appearance - Developer mode on.
2) Right Click on the message our bot sent out, and at the bottom click on "Copy ID"
Here are some links you might need to follow along.
Emoji for reactions: emojipedia.org/
Important times:
0:00 Intro
0:36 Embed Messages
4:40 Developer Mode
5:05 Adding Roles
6:00 on reaction add Events
6:50 Adding roles based on Reactions
11:40 Removing roles based on Reactions
14:40 Finished Product / Outro

Пікірлер: 49
@mayankknirwan
@mayankknirwan 3 жыл бұрын
Man im searching for this from like 2 days thanks a lot man 💯
@lucasgazzana8121
@lucasgazzana8121 3 жыл бұрын
thank you dude, I was searching for this a long time
@vineesh805
@vineesh805 2 жыл бұрын
This Tutorial helped me a lot in coding my reaction role bot. Thank You So Much
@-sheny215
@-sheny215 Жыл бұрын
good video, easy to follow, everything explained in detail so you can actually understand what u r doing - nice!
@crvasldaasd9850
@crvasldaasd9850 3 жыл бұрын
Thank you! one normal youtuber who helped me figure out the reactions
@ExceedCoding
@ExceedCoding 3 жыл бұрын
Thank you for watching!
@smeezy845
@smeezy845 3 жыл бұрын
Very very well explanation and you earned a sub
@ExceedCoding
@ExceedCoding 3 жыл бұрын
Thank you for watching!
@incognitomodedev
@incognitomodedev 3 жыл бұрын
Thanks man deserve a sub!
@veerchauhan1616
@veerchauhan1616 3 жыл бұрын
Thank you I was trying hard to do this for 3 days and after find your video
@ExceedCoding
@ExceedCoding 3 жыл бұрын
Glad I could help, Hope you enjoy the series, Look forward to a new discord series coming soon with more advance stuff.
@VOYD__
@VOYD__ 3 жыл бұрын
Huge thanks to you my friend, u won a sub :)
@ExceedCoding
@ExceedCoding 3 жыл бұрын
Thank you! Hope you enjoy the video :)
@kabir0x23
@kabir0x23 Жыл бұрын
amazing
@maximus7184
@maximus7184 3 жыл бұрын
What if I want the user to not be able to perform more than 3 roles?
@x_ragequit
@x_ragequit 3 жыл бұрын
Hello! Everything I did worked, except the role wasn't added. Is there anything I did wrong?
@ExceedCoding
@ExceedCoding 3 жыл бұрын
Hey guys! Join my Discord server to chat and hang or play with the bot we built discord.gg/QXWn8BZ8Sm
@video86023
@video86023 3 жыл бұрын
Thank you very much man! Superb guide. And thx for timestamps! Make more vids :) Don't stop making new videos, I believe in u. And how we can do to have only 1 role from reaction? ex. I have 3 reactions, but I want to give someone only one role. Or I can't do this with bot, and supposed do it yourself w/ my own hands
@ExceedCoding
@ExceedCoding 3 жыл бұрын
Mhm so if you want to restrict the user you would have to add an if statement above where you want to add your roles to check if they have any of the other roles
@video86023
@video86023 3 жыл бұрын
@@ExceedCoding And if they already have a role, then not give them a new one?
@ExceedCoding
@ExceedCoding 3 жыл бұрын
Yup! At least that’s what I assume you wanted to happen,
@video86023
@video86023 3 жыл бұрын
@@ExceedCoding Ok, I should try this. Thank you! :)
@Fox28235
@Fox28235 2 жыл бұрын
how to send a message when the roles are added? because ctx doesn't work
@alexandrumarinescu6991
@alexandrumarinescu6991 3 жыл бұрын
Thank you for your video! Unfortunately, after following your example I have an error: "UnboundLocalError: local variable 'role' referenced before assignment" - it is related to the line: "await member.add_roles(role)". I found that it might be missing an "else". Have you met this error while building this specific bot function? Thank you.
@bastien9469
@bastien9469 2 жыл бұрын
Same problem !
@matiasramirez7047
@matiasramirez7047 3 жыл бұрын
Hello, I wanted to ask if the "on_raw_reaction_add" and "on_raw_reaction_remove" functions can be used again but with different variables or if they can only be used once.
@ExceedCoding
@ExceedCoding 3 жыл бұрын
I would say that It could be used again but you might have to add a check that would look for the specific channel and then act upon the reactions in there which would allow you interact with the emojis else where
@mrigkrafts4859
@mrigkrafts4859 3 жыл бұрын
can you tell me how to solve this error: Ignoring exception in on_raw_reaction_add discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions Ignoring exception in on_raw_reaction_remove
@mrigkrafts4859
@mrigkrafts4859 3 жыл бұрын
it does mean that there is some permission the bot is missing, but when I checked I had given it the admin permission which includes every permission. So still what might be causing this and what must I do for solving it?
@ExceedCoding
@ExceedCoding 3 жыл бұрын
I think that it has to do with the positioning of your bot's permission inside of discord itself. The error you are getting is due to your bot trying to assign a role to a user but its positioned lower than said role. I would go to the server the bot is in and got to the server setting, then I would go into Roles and I would move your bot's Role up to the top.
@mrigkrafts4859
@mrigkrafts4859 3 жыл бұрын
@@ExceedCoding ok i shall try it and see if it works
@mrigkrafts4859
@mrigkrafts4859 3 жыл бұрын
@@ExceedCoding yes now it works absolutely fine after shifting the places. Thanks for the help really!
@shineliao2399
@shineliao2399 3 жыл бұрын
I search the API and didn’t find the guild in payload it just has guild_id Is that any difference or just the discord.py updates
@shineliao2399
@shineliao2399 3 жыл бұрын
Oh sorry It just my fault
@ExceedCoding
@ExceedCoding 3 жыл бұрын
Hey, Sorry for the late reply was on vacation, so the guild is an attribute of member which itself is apart of the payload. so shorten from what the video showed, it could be payload.member.guild
@declankivlehan9821
@declankivlehan9821 3 жыл бұрын
how did you get the bot to send the 'Welcome to Exceed' message? I don't see anything in your code.
@ExceedCoding
@ExceedCoding 3 жыл бұрын
To get the bot to send something you would do await bot.send(embed=embed)
@novaop6267
@novaop6267 3 жыл бұрын
bro can you pls upload you codes to github? and a suggestion: pls increase the font size :) btw great work
@ExceedCoding
@ExceedCoding 3 жыл бұрын
Thank you! That means a lot to me. Later on in the series I increased the size of the code alongside a new style of presenting it. Check it out :)
@novaop6267
@novaop6267 3 жыл бұрын
Yeah! Sure:)
@NINJAGAMING-vp4mh
@NINJAGAMING-vp4mh 2 жыл бұрын
Hi bro, I am facing a error the error is "NameError: name 'ourMessageID' is not defined" do you have any idea on what to do?
@JustinS06
@JustinS06 2 жыл бұрын
Yeah, your ourMessageID variable is not defined.... it literally says in the error.
@lolek4872
@lolek4872 3 жыл бұрын
how to do it with nitro emoji? thank you
@lolek4872
@lolek4872 3 жыл бұрын
i do it
@tigran7011
@tigran7011 2 жыл бұрын
thank you bro so much!
@rezamando374
@rezamando374 2 жыл бұрын
i need github
@Wiser51
@Wiser51 3 жыл бұрын
got a thumbs up from me but i wouldve really appreciated it if you would’ve put the code in the description
How to write a Discord Role Reaction Bot in Python w/ Discord.py
17:16
Anson the Developer
Рет қаралды 59 М.
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 14 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 87 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 43 МЛН
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 4,4 МЛН
Code a Discord Bot with Python - Host for Free in the Cloud
1:08:28
freeCodeCamp.org
Рет қаралды 2,3 МЛН
How to make Reaction role for Discord Bot using Discord py
21:16
Dhanush Suvarna
Рет қаралды 20 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 698 М.
How to make an Economy Discord Bot Python | Discord.py 2020
13:48
Code With Swastik
Рет қаралды 111 М.
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 792 М.
Can You Beat Hitman 3 Without Breaking ANY Laws?
22:37
windowledge
Рет қаралды 1,6 МЛН