Giter Site home page Giter Site logo

pcrjjc2-discord's Introduction

pcrjjc2 for Discord

本repo是pcrjjc2的discord机器人, 仅用于tw服.

支持绑定一个用户绑定多个PCR账号以及击剑自动提醒.

本项目基于AGPL v3协议开源,由于项目特殊性,禁止基于本项目的任何商业行为

用法说明

  1. 首先获得一个discord API的token
  2. 复制一份 /data/data/tw.sonet.princessconnect/sharedprefs/tw.sonet.princessconnect.v2.playerprefs.xml 一般需要root
    • 切换账号会导致xml失效, 取出playerpref后,删除再引继:
      1. /data/data/tw.sonet.princessconnect/sharedprefs/tw.sonet.princessconnect.v2.playerprefs.xml
      2. /data/data/tw.sonet.princessconnect/files/savedData 文件夹
  3. 在项目根目录下新建config.json,内容如下:
{
    "token": "", //DISCORD API TOKEN
    "proxy": null, //如果需要代理,请参考原repo
    "playerprefs": {
        "1": "台1 playerpref.xml的路径, 台2\3\4同理"
    },
    "binds_file": "binds.json" //用于存储用户绑定状态
    "max_enemy": -1 //如果非负,表示黑名单UID最大数量(0为不启用)
}

binds.json的格式说明:

{
   "uid1": {
        "uid": str,  # discord user id, 与key相同
        "gid": int,  # discord 频道ID, 每个用户仅支持在一个群组中推送消息
        "11": bool,  # 是否推送11排名下降
        "33": bool,  # 是否推送33排名下降,
        "data": List[str, str]  # (服务器, 九码)
        "enemy": List[str]  # 黑名单UID
        "is_private": bool  # 私聊推送开关
    }
}

pcrjjc2-discord's People

Contributors

lostkevin avatar

Stargazers

 avatar

Forkers

sdyxxjj123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.