Relative Content

Tag Archive for python-3.xdiscord.py

Discord Bot resending the message but I want only a part of it

if user == reaction.message.author and reaction.emoji == (‘💰’): channel = client.get_channel(1245472750164906084) await channel.send(f”{reaction.message.content} by {reaction.message.author.mention}”) This is working as intended (almost). All the messages looks like “@role the rest of the message”. What bot does right now is resending the message + adding “by @ user”. Id like to make it ignore the “@role” part […]

Discord Bot resending the message but I want only a part of it

if user == reaction.message.author and reaction.emoji == (‘💰’): channel = client.get_channel(1245472750164906084) await channel.send(f”{reaction.message.content} by {reaction.message.author.mention}”) This is working as intended (almost). All the messages looks like “@role the rest of the message”. What bot does right now is resending the message + adding “by @ user”. Id like to make it ignore the “@role” part […]

Discord Bot resending the message but I want only a part of it

if user == reaction.message.author and reaction.emoji == (‘💰’): channel = client.get_channel(1245472750164906084) await channel.send(f”{reaction.message.content} by {reaction.message.author.mention}”) This is working as intended (almost). All the messages looks like “@role the rest of the message”. What bot does right now is resending the message + adding “by @ user”. Id like to make it ignore the “@role” part […]

Discord Bot resending the message but I want only a part of it

if user == reaction.message.author and reaction.emoji == (‘💰’): channel = client.get_channel(1245472750164906084) await channel.send(f”{reaction.message.content} by {reaction.message.author.mention}”) This is working as intended (almost). All the messages looks like “@role the rest of the message”. What bot does right now is resending the message + adding “by @ user”. Id like to make it ignore the “@role” part […]

Discord Bot resending the message but I want only a part of it

if user == reaction.message.author and reaction.emoji == (‘💰’): channel = client.get_channel(1245472750164906084) await channel.send(f”{reaction.message.content} by {reaction.message.author.mention}”) This is working as intended (almost). All the messages looks like “@role the rest of the message”. What bot does right now is resending the message + adding “by @ user”. Id like to make it ignore the “@role” part […]

Discord Bot resending the message but I want only a part of it

if user == reaction.message.author and reaction.emoji == (‘💰’): channel = client.get_channel(1245472750164906084) await channel.send(f”{reaction.message.content} by {reaction.message.author.mention}”) This is working as intended (almost). All the messages looks like “@role the rest of the message”. What bot does right now is resending the message + adding “by @ user”. Id like to make it ignore the “@role” part […]

Discord Bot resending the message but I want only a part of it

if user == reaction.message.author and reaction.emoji == (‘💰’): channel = client.get_channel(1245472750164906084) await channel.send(f”{reaction.message.content} by {reaction.message.author.mention}”) This is working as intended (almost). All the messages looks like “@role the rest of the message”. What bot does right now is resending the message + adding “by @ user”. Id like to make it ignore the “@role” part […]

Discord Bot resending the message but I want only a part of it

if user == reaction.message.author and reaction.emoji == (‘💰’): channel = client.get_channel(1245472750164906084) await channel.send(f”{reaction.message.content} by {reaction.message.author.mention}”) This is working as intended (almost). All the messages looks like “@role the rest of the message”. What bot does right now is resending the message + adding “by @ user”. Id like to make it ignore the “@role” part […]

Read a message from the Discord test server, using Discord Intents

I know that the Python script (3.12) is connecting to the Discord server from the following response in the PyCharm terminal
[2024-08-13 00:55:09] [INFO ] discord.client: logging in using static token
[2024-08-13 00:55:09] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: xxxx).
Logged on as D&D Random Room Generator#9850!