# Path: watashi.py
# class Watashi(commands.Bot):
#     def __init__(self, config_path: str, *args, **kwargs):
#         self.config_path = config_path
#         with open(self.config_path) as f:
#             self.configs = json.load(f)
# 
#         self.starttime = datetime.datetime.now()
# 
#         self.default_cogs = [f'cogs.{x.stem}' for x in Path('cogs').glob('*.py')]
# 
#         self.user_color = int(self.configs['embed_colour'], 16)
# 
#         super().__init__(command_prefix=self.configs['prefix'], self_bot=True)
# 
#         self.remove_command("help")
# 
#         # Colors can be called via shortcut
#         # class Foo:
#         #   def __init__(self, bot):
#         #       self.bot = bot
#         #       self.color = bot.color.gold()
#         # Note: this is nearly useless considering how short the command is anyway but whatever.
#         # discord.color.gold() -> self.color.gold()
#         self.color = discord.Color
# 
#         self.aiohttp_session = aiohttp.ClientSession(loop=self.loop)
# 
#     def run(self):
#         super().run(self.configs['token'], bot=False)
# 
#     # Custom context which includes better error support
#     async def on_message(self, message):
#         ctx = await self.get_context(message, cls=custom_context.WatashiContext)
#         await self.invoke(ctx)
# 
#     async def on_ready(self):
#         print("<----------------->\n"
#               "Watashi SelfBot\n"
#               "<----------------->\n"
#               "Coded by:\nPrestige#9162\nDemo#9465\nnaught0#4417\n"
#               "<----------------->\n"
#               "Warning:\n"
#               "Under the MIT license, the makers of Watashi-SelfBot are not liable for any\n"
#               "damage caused/action taken against you for using a selfbot, which is in \n"
#               "violation of Discord's TOS")
# 
#         for cog in self.default_cogs:
#             self.load_extension(cog)


import sys
from watashi import Watashi

if __name__ == "__main__":
    try:
        config_path = sys.argv[1]
    except:
        config_path = 'config.json'


# Path: watashi.py
# class Watashi(commands.Bot):
#     def __init__(self, config_path: str, *args, **kwargs):
#         self.config_path = config_path
#         with open(self.config_path) as f:
#             self.configs = json.load(f)
# 
#         self.starttime = datetime.datetime.now()
# 
#         self.default_cogs = [f'cogs.{x.stem}' for x in Path('cogs').glob('*.py')]
# 
#         self.user_color = int(self.configs['embed_colour'], 16)
# 
#         super().__init__(command_prefix=self.configs['prefix'], self_bot=True)
# 
#         self.remove_command("help")
# 
#         # Colors can be called via shortcut
#         # class Foo:
#         #   def __init__(self, bot):
#         #       self.bot = bot
#         #       self.color = bot.color.gold()
#         # Note: this is nearly useless considering how short the command is anyway but whatever.
#         # discord.color.gold() -> self.color.gold()
#         self.color = discord.Color
# 
#         self.aiohttp_session = aiohttp.ClientSession(loop=self.loop)
# 
#     def run(self):
#         super().run(self.configs['token'], bot=False)
# 
#     # Custom context which includes better error support
#     async def on_message(self, message):
#         ctx = await self.get_context(message, cls=custom_context.WatashiContext)
#         await self.invoke(ctx)
# 
#     async def on_ready(self):
#         print("<----------------->\n"
#               "Watashi SelfBot\n"
#               "<----------------->\n"
#               "Coded by:\nPrestige#9162\nDemo#9465\nnaught0#4417\n"
#               "<----------------->\n"
#               "Warning:\n"
#               "Under the MIT license, the makers of Watashi-SelfBot are not liable for any\n"
#               "damage caused/action taken against you for using a selfbot, which is in \n"
#               "violation of Discord's TOS")
# 
#         for cog in self.default_cogs:
#             self.load_extension(cog)


# Path: launcher.py
import sys
from watashi import Watashi


if __name__ == "__main__":
    try:
        config_path = sys.argv[1]
    except:
        config_path = 'config.json'


    bot = Watashi(config_path)