# pc_info | Marsho AI
Kawaii, Intelligent and Easy to Extend

Skip to content

# Module `nonebot_plugin_marshoai.plugins.twisuki_petcat.pc_info` ​

### func `print_type_list() -> str` ​

Source code or View on GitHub
python

    def print_type_list() -> str:
        result = ''
        for type in TYPE_LIST:
            result += f'"{type}", '
        result = result[:-2]
        return f'({result})'

### func `print_skill_list() -> str` ​

Source code or View on GitHub
python

    def print_skill_list() -> str:
        result = ''
        for skill in SKILL_LIST:
            result += f'"{skill}", '
        result = result[:-2]
        return f'({result})'

### func `value_output(num: int) -> str` ​

Source code or View on GitHub
python

    def value_output(num: int) -> str:
        value = int(num / 1.27)
        return str(value)

### func `print_info(token: str) -> str` ​

Source code or View on GitHub
python

    def print_info(token: str) -> str:
        data = token_to_dict(token)
        return f"状态信息: \n\t名字 : {data['name']}\n\t种类 : {TYPE_LIST[data['type']]}\n\t生命值 : {value_output(data['health'])}\n\t饱食度 : {value_output(data['saturation'])}\n\t活力值 : {value_output(data['energy'])}\n\t技能 : {print_skill(token)}\n新token : {token}\ntoken已更新, 请妥善保存token, 这是猫猫的唯一标识符!"

### func `print_skill(token: str) -> str` ​

Source code or View on GitHub
python

    def print_skill(token: str) -> str:
        result = ''
        data = token_to_dict(token)
        for index in range(0, len(SKILL_LIST) - 1):
            if data['skill'][index]:
                result += f'{SKILL_LIST[index]}, '
        logger.info(data['skill'])
        return result[:-2]

### func `help_cat_new() -> str` ​

Source code or View on GitHub
python

    def help_cat_new() -> str:
        return f'新建一只猫猫, 首先选择猫猫的种类, 获取初始化token;然后用这个token, 选择名字和一个技能进行初始化;初始化结束才表示猫猫正式创建成功.\ntoken为猫的唯一标识符, 每次交互都需要传入token\n种类可选 : {print_type_list()}\n技能可选 : {print_skill_list()}'