<reponame>EveryoneHATEme/discordBot
from discord.ext import commands

from db import db_session
from settings import TOKEN
from cogs import Music


class PeyokaBot(commands.Bot):
    def __init__(self, name='PeyokaPeyoka', command_prefix='!'):
        super().__init__(command_prefix=command_prefix)
        self.name = name

    async def on_ready(self):
        print(f'Connected to the channels: {", ".join([x.name for x in self.guilds])}')


if __name__ == '__main__':
    db_session.global_init("db/db.sqlite")
    bot = PeyokaBot()
    bot.add_cog(Music(bot))
    bot.run(TOKEN)
