Created
February 18, 2023 14:03
-
-
Save INeddHelp/de3f0f8c292eb64b1ab7d562bab673bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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