zephyr123

YanDev's Ayano script

Apr 27th, 2020
1,151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.01 KB | None | 0 0
  1. # uncompyle6 version 3.6.4
  2. # Python bytecode 3.7 (3394)
  3. # Decompiled from: Python 2.7.17 (default, Apr 15 2020, 17:20:14)
  4. # [GCC 7.5.0]
  5. # Warning: this version has problems handling the Python 3 byte type in contants properly.
  6.  
  7. # Embedded file name: C:\Users\joelt\Desktop\aoi-bot - Copy\utils\ayano.py
  8. # Size of source mod 2**32: 650 bytes
  9. from discord.ext.commands import AutoShardedBot
  10. from utils import checks, default
  11.  
  12. class Ayano(AutoShardedBot):
  13.  
  14.     def __init__(self, *args, prefix=None, **kwargs):
  15.         (super().__init__)(*args, **kwargs)
  16.  
  17.     async def on_message(self, msg):
  18.         if not (self.is_ready() and msg.author.bot or default.can_send(msg)):
  19.             return
  20.             if msg.author.id in checks.user_blacklist:
  21.                 await msg.channel.send('**Error:** You are banned for use.')
  22.                 return
  23.             if msg.guild is not None:
  24.                 if msg.guild.id in checks.guild_blacklist:
  25.                     return
  26.         await self.process_commands(msg)
Advertisement
Add Comment
Please, Sign In to add comment