Skip to content

增加 呼吸系统(即生气情绪) #4

@SlieFamily

Description

@SlieFamily
  • 建立用户表(name,id,degree,isblack)

  • 嵌入到users-time.db数据库中

  • 扩展原timer.py插件,以包的形式添加model.py完成数据库操作的API

  • try的方式对现有其他插件引入API

  • 在新的倒计时插件中,编写逻辑使得isblack能够定时变化

  • API包括:

    • 根据ID返回isblack的状态
    • 增加激怒度:根据ID使对应degree自增
    • 拉黑:根据ID使isblack = 1
    • Master根据ID一键解除 (即isblack = 0 && degree = 0
    • 更换用户名(update userlist set name = 'xxx' where name = 'xxx
    • 返回黑名单(select name,id from userlist where isblack=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    New featuresAdd new features for this project

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions