remove this line of code: if message.author == self.client.user: return then the bot react to all messages including itself. If you want the bot to ONLY react to its messages, replace the first if statement with those lines: if message.author != self.client.user: return hope this helps! :)
Hi, how do you make the bot react if someone mentions someone specifically? For example if someone types: "Hello @User1" the bot must react to this mention. Would appreciate if you could help me. Thanks!
how would I make it so the bot doesn't send "RUclips Bot added : {emoji}" when the bot itself adds a reaction?
remove the line of code that has that functionality
i'm pretty sure you can do :
if user == self.client.user:
return
at the beginning of your on_reaction_add function, but i haven't tested it myself
Hi, would you explain how a bot would react to its own message?
remove this line of code:
if message.author == self.client.user:
return
then the bot react to all messages including itself.
If you want the bot to ONLY react to its messages, replace the first if statement with those lines:
if message.author != self.client.user:
return
hope this helps! :)
hey james, is there a way the bot could react to all users comments but nnot its own?
How do I make it to react only to reaction rather than any message
await message.add_reaction(reaction), instead of await channel.send(user.display_name + " added: " + reaction.emoji), i haven't tested it tho
@@mykado8138 Yeah I made it, it works though I had to precise few things.
Hey James can you link docs? I cannot find link you were showing
Ooops sorry. Completely forgot to add it. I’ll do it now
I've now added them to the description. Thank you for letting me know.
Thank you and thanks for video it is great. Keep it up 😀
Hi, how do you make the bot react if someone mentions someone specifically? For example if someone types: "Hello @User1" the bot must react to this mention. Would appreciate if you could help me. Thanks!
i dont htink you still need this but just
Hello james, not really related to reactions, but i think it is approproate to ask, so, my bot cannot use animated emojies (sending them as message),
Hi, unfortunatly I don't think you'll be able to send animate emojis via discord.py as at the moment that isn't a feature.
you sound like boris johnson
Hi, how bot can add role to a member after join? My code still doesn't work :(
Hi, I’ve got a video coming out in the next couple of days all to do with roles
@@James_S thanks you sooo much :D
NICE :)
From where can i download code of this bot?
You can`t
third