Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- TOKEN = ""
- client = discord.Client()
- @client.event
- async def on_ready():
- print(f"{client.user} has connected to Discord")
- @client.event
- async def on_message(message):
- if message.author == client.user:
- pass
- else:
- await message.channel.send("no.")
- await message.channel.send(file=discord.File("ben2.jpeg"))
- return
- client.run(TOKEN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement