Discord Bot with Python - Tutorial 3 - Reactions and Message Edits

  Рет қаралды 31,369

thenewboston

thenewboston

2 жыл бұрын

Source Code: github.com/thenewboston-devel...
Core Deployment Guide (AWS): docs.google.com/document/d/16...

Пікірлер: 46
@reviewbymini4273
@reviewbymini4273 2 жыл бұрын
Thanks to this guy for helping me with java back in 2014 👍🏻
@cayden9224
@cayden9224 2 жыл бұрын
Awesome more tutorials!
@ArtamisBot
@ArtamisBot 2 жыл бұрын
Apperently I wouldn't exist without Connor watching this channel some ten years ago... I guess I should thank you...
@jsviolet
@jsviolet 2 жыл бұрын
If i knew you were the tutor I'll watch it sooner man
@ahmedbathily7013
@ahmedbathily7013 2 жыл бұрын
Thank you again
@rleonekc07
@rleonekc07 2 жыл бұрын
BUCKY I MISSED YOU SO MUCH. I plz need a tutorial on how to become the president of the united states
@F_R_I_E_Z_A
@F_R_I_E_Z_A 2 жыл бұрын
I agree
@chrishacanete4012
@chrishacanete4012 2 жыл бұрын
WHAHAHAHA sorry for laughing at this. Hoping to see this toturial too.
@DatOneDuck
@DatOneDuck 2 жыл бұрын
how do you make it so then you see whose message they reacted to
@davidmonroy403
@davidmonroy403 2 жыл бұрын
Something a bit more "interesante" :) . BTW It is in Spanish, and it is, in fact, interesting. Thanks for the "interesante" video.
@hussuagain917
@hussuagain917 2 жыл бұрын
thanks
@JNET_Reloaded
@JNET_Reloaded 2 жыл бұрын
link to the raw file for this plz?
@sirerik2825
@sirerik2825 2 жыл бұрын
Side note: If you post a link with an image/video preview the bot will think you edited a message (it takes the preview a while to load) 1. You send the link 2. Link is in the chat 3. The message gets updated with a video player/image
@helper0066
@helper0066 Жыл бұрын
Include an if-statement "if before.content != after.content:" . This little trick works because the event type actually listens in for more than just users editing messages; it triggers when the server itself updates player's messages to place in the embed or a notification of a pinned message. So by making sure that the before.content and after.content are not equal to each other, we can make the bot only care for users editing their messages.
@retro1974
@retro1974 2 жыл бұрын
can you continue Django REST API tutorial. The one I saw was incomplete. BTW nice tutorial.
@frostheavenangel
@frostheavenangel 2 жыл бұрын
How can i delete user's message? @client.event async def on_message(message): if message.content =="text to be deleted": ....... and "TeXt tO bE deLeTed" is case sensitive, how to prevent this spec?
@tim_oh_thee
@tim_oh_thee 2 жыл бұрын
To delete a message, I believe the function is: await message.delete() (Assuming your bot has admin privileges) If you want to catch "TeXt tO bE deLeTed", use Python's lower() function: if message.content.lower() == "text to be deleted" Side note, strip() is also helpful if you want to remove spaces on the end of the message. So if you want to delete "TeXt tO bE deLeTed ", you would have: if message.content.lower().strip() == "text to be deleted" Lastly, if you wanted to catch a message like "text to be deleted......!", where it has a bunch of other stuff but "text to be deleted" is somewhere in there, you could have: If "text to be deleted" in message.content.lower().strip()
@VerifiedStaff
@VerifiedStaff 2 жыл бұрын
on "if message.content == 'Cool': await message.add_reaction('\U0001F60E')" if i put multiple words to trigger it, it just reacts every message, is that a problem with the code or with my ide?
@wiktorkarkoszka2498
@wiktorkarkoszka2498 2 жыл бұрын
You propably already solved it but if not try: if message.content == 'Cool' or message.content == '......' : #what you want
@ahmedbathily7013
@ahmedbathily7013 2 жыл бұрын
But when a tutoriel for Spring boot or app developpement
@yohimaster8359
@yohimaster8359 Ай бұрын
It says member not found, and idk why... i tried but its not working
@silkytoe8032
@silkytoe8032 2 жыл бұрын
you made my discord server 10 x better
@srinaath4977
@srinaath4977 2 жыл бұрын
Hey Bucky, I want to know how to stop the bot from running , as we have already seen how to run it but not how to stop, i have to stop it by using runtime error. So it would be helpful if you incude that in the upcoming video. looking forward to it
@Soundalious
@Soundalious 2 жыл бұрын
try ctrl c
@chaska8144
@chaska8144 2 жыл бұрын
does this work on selfbots
@WhityLee_
@WhityLee_ 2 жыл бұрын
by doing this, all my ''@client.command()" stop working
@NoobyDragClicker
@NoobyDragClicker 9 ай бұрын
same, did u find a fix?
@YozyYoutube
@YozyYoutube Жыл бұрын
5:57 Are you hungry
@rambalram2610
@rambalram2610 2 жыл бұрын
Hello Brother... I have an online coding challenge in one week time in Python. I have a week time to prepare... I can code with Python but not sure what to expect in such coding challenge... Any pointer will be helpful. Can you please help ?? Thanks in Advance... Appeciate your help...!!!
@derjungel
@derjungel 2 жыл бұрын
How did it go?
@txcNexus
@txcNexus 2 жыл бұрын
how'd it go?
@rambalram2610
@rambalram2610 2 жыл бұрын
It went well, I am into the Job already !!
@txcNexus
@txcNexus 2 жыл бұрын
@@rambalram2610 congrats. I'll be in college a year from now and can't decide on what to take
@rambalram2610
@rambalram2610 2 жыл бұрын
@@txcNexus What do you mean ?? Look at what interest you and align it with what do you want to become in life. Connect the dots..!!
@lethaletori6146
@lethaletori6146 Жыл бұрын
Im trying to make a bot on my phone cuz my pc is being build snd it’s really hard. Any tips will help it anyone has experience
@MartinGecko
@MartinGecko 2 жыл бұрын
Did exactly what he did and it didn't work
@Karimmohamud
@Karimmohamud 2 жыл бұрын
How do I do it so it only reacts to let say when a certain user sends a certain message? Let’s say every time user 1 says “hello” the bot reacts with “👋”
@shirfix
@shirfix 2 жыл бұрын
gotta get some research. Sorry!
@mintyfresh8275
@mintyfresh8275 2 жыл бұрын
designatedUser = client.get_user(*put user id here*) if message.author == designatedUser: message.add_reaction("*put emoji unicode here*")
@nettoribeiro4267
@nettoribeiro4267 2 жыл бұрын
3:55 INTERESSANTE means interesting in portuguese hehhehe
@giek6839
@giek6839 Жыл бұрын
also in italian, lol
@petrusinchetru9501
@petrusinchetru9501 Жыл бұрын
interesanting romania sau moldova
Discord Bot with Python - Tutorial 4 - Roles Bot
27:05
thenewboston
Рет қаралды 16 М.
You Will Get Banned On Discord if You Say THIS
0:47
McMakers Station
Рет қаралды 3,4 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 100 МЛН
3 Tips For Wearing Hoodies
0:49
I AM RIO P.
Рет қаралды 1,4 МЛН
LLM Application Development - Tutorial 1 - Introduction
17:16
thenewboston
Рет қаралды 11 М.
ENTREGABLE 2 taller de programación
1:05
Johan_Cardenas
Рет қаралды 16
Discord Bot with Python - Tutorial 1 - Getting Started
8:15
thenewboston
Рет қаралды 48 М.
인하대 현 상황 55초만에 이해하기
0:55
쿸키
Рет қаралды 5 МЛН
The Secret Science of Perfect Spacing
9:40
Chainlift
Рет қаралды 384 М.
Pagination with Embeds in #discord #python #shorts #programming #coding
0:27