Skip to content

Instantly share code, notes, and snippets.

@INeddHelp
Created February 18, 2023 14:03
Show Gist options
  • Save INeddHelp/de3f0f8c292eb64b1ab7d562bab673bc to your computer and use it in GitHub Desktop.
Save INeddHelp/de3f0f8c292eb64b1ab7d562bab673bc to your computer and use it in GitHub Desktop.
import discord
intents = discord.Intents.default()
intents.members = True # Enable the privileged members intent
client = discord.Client(intents=intents)
@client.event
async def on_ready():
print('Ready')
@client.event
async def on_message(message):
if message.author == client.user:
return
if client.user.mentioned_in(message):
await message.channel.send('Hello!')
client.run("your-token")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment