So I'm trying to make a discord bot with python, and I would like it to ping a certain role, adding parts of your message into specific places. Such as: @role, Sponsor: @person, Message: message.
This is my code;
if message.content[11:] != message.content:
if message.content[10:] != "@Johnny Wobble#1085":
print("confirmed stage 2")
responses = [
"<@&820375570307088404>",
f"Sponser: {message.content[10:]}",
f"Message: {message.content[11:]}",
]
await message.delete()
await message.channel.send(responses)
else:
print("confirmed stage 3")
await client.send_message(message.channel, f"Ah, I see you {message.author.mention}, trying to turn me agai"
f"nst my master eh? Well I say no! I cannot believe you would think that I would ever do that to the all-po"
f"werful Max (Gordon)!")
I tried this code but it just ends up repeating the entire message.
For example: -gw @person pls work
Then it returns '@role' 'Sponsor: @person pls work' 'Message: @person pls work'
Do I have some problems in my code?