import os


def init_plugin_res_path(bot_config):
    root_path = bot_config.bot_res_path
    buff_163_path = os.path.join(root_path, 'buff_163')
    if not os.path.exists(buff_163_path):
        os.makedirs(buff_163_path)
    draw_card_data_path = os.path.join(root_path, 'draw_card')
    if not os.path.exists(draw_card_data_path):
        os.makedirs(draw_card_data_path)
    genshin_data_path = os.path.join(root_path, 'genshin')
    if not os.path.exists(genshin_data_path):
        os.makedirs(genshin_data_path)
    ark_gamedata_path = os.path.join(root_path, 'arknights')
    if not os.path.exists(ark_gamedata_path):
        os.makedirs(ark_gamedata_path)
    pixiv_path = os.path.join(root_path, 'pixiv')
    if not os.path.exists(pixiv_path):
        os.makedirs(pixiv_path)
    stick_path = os.path.join(root_path, 'stick')
    if not os.path.exists(stick_path):
        os.makedirs(stick_path)
    nhentai_path = os.path.join(root_path, 'nhentai')
    if not os.path.exists(nhentai_path):
        os.makedirs(nhentai_path)
    text2img_path = os.path.join(root_path, 'text2img')
    if not os.path.exists(text2img_path):
        os.makedirs(text2img_path)
    hk_reporter_config_path = os.path.join(root_path, 'hk_reporter_config')
    if not os.path.exists(hk_reporter_config_path):
        os.makedirs(hk_reporter_config_path)
    bot_config.buff_163_path = buff_163_path
    bot_config.pixiv_path = pixiv_path
    bot_config.stick_path = stick_path
    bot_config.nhentai_path = nhentai_path
    bot_config.text2img_path = text2img_path
    bot_config.hk_reporter_config_path = hk_reporter_config_path
    bot_config.ark_gamedata_path = ark_gamedata_path
    bot_config.draw_card_data_path = draw_card_data_path
    bot_config.genshin_data_path = genshin_data_path