Advertisement
Crystepsu

Untitled

Feb 28th, 2022 (edited)
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. import discord
  2.  
  3. TOKEN = ""
  4. client = discord.Client()
  5.  
  6. @client.event
  7. async def on_ready():
  8.         print(f"{client.user} has connected to Discord")
  9.  
  10. @client.event
  11. async def on_message(message):
  12.         if message.author == client.user:
  13.                 pass
  14.         else:
  15.                 await message.channel.send("no.")
  16.                 await message.channel.send(file=discord.File("ben2.jpeg"))
  17.                 return
  18.  
  19. client.run(TOKEN)
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement