Esempio n. 1
0
from discord.ext import commands
from utils.config import Config
from utils.tools import *
from utils.channel_logger import Channel_Logger
from utils.mysql import *
from utils.buildinfo import *

config = Config()
log.setupRotator(config.log_date_format, config.log_time_format)
if config.debug:
    log.enableDebugging()  # pls no flame
bot = commands.AutoShardedBot(
    command_prefix=config.command_prefix,
    description="A multi-purpose Ruby Rose from RWBY themed discord bot",
    pm_help=None)
channel_logger = Channel_Logger(bot)
aiosession = aiohttp.ClientSession(loop=bot.loop)
lock_status = config.lock_status

extensions = [
    "commands.fun", "commands.information", "commands.moderation",
    "commands.configuration", "commands.nsfw", "commands.music"
]

# Thy changelog
change_log = [
    "Commands:", "+ nou", "+ cow", "+ fortune", "+ cows", "+ neko", "+ twitch",
    "+ youtube", "+ owo", "Other things:",
    "The avatar command will now display png instead of webp for non-animated avatars",
    "Fixed NSFW commands so they don't return the JSONDecodeError (hopefully)",
    "The defaultavatar command works again.",
Esempio n. 2
0
 def __init__(self, bot):
     self.bot = bot
     self.logger = Channel_Logger(bot)