I have a bot with some basic auto-responses. I have a separate bot with similar features and some shared auto-responses between the two bots. How do I block bots from triggering each other in discord.py?
My current code is this:
if discord.User.bot == True:
return
That's placed inside my on_message() event, right at the start, after a check to see if the bot is the message triggering the event. This currently doesn't work. I'm new to the idea of importing stuff and using class systems so any help/clarification is useful!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…