我是溯洄(OIer & CTFer)!经常没事情的时候写代码玩!
比较有趣的项目有 Dice, CQXQ之类的(这些我都不再继续参与开发了)
Suhui Here! I regularly participate in Olympiads in Informatics (OI) and Capture the Flags (CTF) contests.
Dice! Version 3 基于酷Q的QQ跑团掷骰机器人
Home Page: https://kokona.tech
License: MIT License
使用环境:
OS:Ubuntu 16
软件:酷Qdocker 2.0,Release页面下载的的Dice3版本
在群卡片切换为某张特定卡片时(主动使用.st switch 或者使用.nn),.nn设置的群名片会被自动删除,体现为有设置非default卡片时无法有效使用.nn,但全局设置名片有效。
我已经检查过了一遍代码,但是坦白说觉得逻辑都是正确的……没看出有哪里有问题。我也没条件可以查数据库。
另外关于自动替换技能简称/全称的功能,这个功能在.st set中实现良好,但是在.ra中并未实现,造成了设置的时候可以使用“图书馆”做名字,但是roll的时候反而不能用的问题。目前我认为应当在:
int get_single_card_properties(const cq::Target &target, const std::string &character_card_name, std::string &property) { SQLite::Statement st(*db::db, "SELECT value FROM character_cards WHERE qq_id = ? AND card_name = ? AND property = ?"); st.bind(1, *target.user_id); st.bind(2, character_card_name); st.bind(3, property); if (st.executeStep()) { return st.getColumn(0).getInt(); } if (msg::SkillDefaultVal.count(property)) { return msg::SkillDefaultVal.at(property); } throw exception::exception( utils::format_string(msg::GetGlobalMsg("strPropertyNotFoundError"), {{"property_name", property}})); }
函数增加一个将property对应查表的调用。手头没有VS build环境只能看看代码,敬请见谅……
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.