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