You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@client.event
async def on_ready():
print(f'We have logged in as {client.user}')
@client.event
async def on_message(message):
print(f'Message from {message.author} in {message.guild.name}/{message.channel.name}: {message.content}')
if message.guild and message.guild.id == GUILD_ID and message.channel.id == CHANNEL_ID:
await message.add_reaction('😭')
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
import discord
intents = discord.Intents.default()
intents.message_content = True
client = discord.Client(intents=intents)
GUILD_ID = GUILD_ID
CHANNEL_ID = GUILD_ID
@client.event
async def on_ready():
print(f'We have logged in as {client.user}')
@client.event
async def on_message(message):
client.run('email', 'pass')
Beta Was this translation helpful? Give feedback.
All reactions