| | |
| | | return cp.get("config", "comment_templates") |
| | | |
| | | |
| | | # -------------------------------常用表情-------------------------- |
| | | def set_common_emojis(content): |
| | | # 设置是否置顶 |
| | | cp = __read_setting() |
| | | cp.set("config", "common_emojis", content) |
| | | __write_setting(cp) |
| | | |
| | | |
| | | # 获取是否置顶 |
| | | def get_common_emojis(): |
| | | try: |
| | | cp = __read_setting() |
| | | return cp.get("config", "common_emojis") |
| | | except: |
| | | return "" |
| | | |
| | | |
| | | # -------------------------------点赞条件-------------------------- |
| | | def set_like_conditions(content): |
| | | # 设置是否置顶 |
| | | cp = __read_setting() |
| | | cp.set("config", "like_conditions", content) |
| | | __write_setting(cp) |
| | | |
| | | |
| | | # 获取是否置顶 |
| | | def get_like_conditions(): |
| | | try: |
| | | cp = __read_setting() |
| | | return cp.get("config", "like_conditions") |
| | | except: |
| | | return "" |
| | | |
| | | if __name__ == "__main__": |
| | | pass |