Advertisement
SevenC_nanashi

Untitled

Nov 15th, 2020 (edited)
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. # ===================Before===================
  2. #Global-chat
  3. @client.event
  4. async def on_message(message):
  5.     if message.author.bot:
  6.         return
  7.     GLOBAL_CH_NAME = "yuki-global"
  8.  
  9.     if message.channel.name == GLOBAL_CH_NAME:
  10.         await message.delete()
  11.  
  12. # ===================After ===================
  13. #Global-chat
  14. @client.event
  15. async def on_message(message):
  16.     if message.author.bot:
  17.         return
  18.    
  19.     await client.process_commands(message)
  20.     GLOBAL_CH_NAME = "yuki-global"
  21.     if message.channel.name == GLOBAL_CH_NAME:
  22.         await message.delete()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement