How to make a Discord Bot React to ANYTHING | Reactions (Part 14) (2021 Update)

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024
  • НаукаНаука

Комментарии • 25

  • @FukurouYGR
    @FukurouYGR 8 месяцев назад +1

    how would I make it so the bot doesn't send "RUclips Bot added : {emoji}" when the bot itself adds a reaction?

    • @submariner_42
      @submariner_42 4 месяца назад

      remove the line of code that has that functionality

    • @mykado8138
      @mykado8138 2 месяца назад

      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

  • @Alireza-vb5eh
    @Alireza-vb5eh 2 года назад +3

    Hi, would you explain how a bot would react to its own message?

    • @kindlehaha
      @kindlehaha 2 года назад +1

      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! :)

  • @jacobwhite1642
    @jacobwhite1642 2 года назад +1

    hey james, is there a way the bot could react to all users comments but nnot its own?

  • @Sslifer01
    @Sslifer01 2 месяца назад +1

    How do I make it to react only to reaction rather than any message

    • @mykado8138
      @mykado8138 2 месяца назад

      await message.add_reaction(reaction), instead of await channel.send(user.display_name + " added: " + reaction.emoji), i haven't tested it tho

    • @Sslifer01
      @Sslifer01 2 месяца назад

      @@mykado8138 Yeah I made it, it works though I had to precise few things.

  • @cewa44
    @cewa44 3 года назад +3

    Hey James can you link docs? I cannot find link you were showing

    • @James_S
      @James_S  3 года назад +4

      Ooops sorry. Completely forgot to add it. I’ll do it now

    • @James_S
      @James_S  3 года назад +4

      I've now added them to the description. Thank you for letting me know.

    • @cewa44
      @cewa44 3 года назад +1

      Thank you and thanks for video it is great. Keep it up 😀

  • @cxpxc5520
    @cxpxc5520 3 года назад +2

    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!

    • @limeedhot
      @limeedhot 2 года назад

      i dont htink you still need this but just

  • @cdacommunityminecraft4665
    @cdacommunityminecraft4665 3 года назад +1

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

    • @James_S
      @James_S  3 года назад +1

      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.

  • @cinnstocaworld
    @cinnstocaworld 2 года назад +2

    you sound like boris johnson

  • @janmusil5825
    @janmusil5825 3 года назад

    Hi, how bot can add role to a member after join? My code still doesn't work :(

    • @James_S
      @James_S  3 года назад +1

      Hi, I’ve got a video coming out in the next couple of days all to do with roles

    • @janmusil5825
      @janmusil5825 3 года назад +1

      @@James_S thanks you sooo much :D

  • @Nothing-qm2cz
    @Nothing-qm2cz 3 года назад +1

    NICE :)

  • @kek537
    @kek537 2 года назад

    From where can i download code of this bot?

    • @iluk3606
      @iluk3606 2 месяца назад

      You can`t

  • @GH05TYPLAYz
    @GH05TYPLAYz 3 года назад +1

    third