Skip to content

Commit

Permalink
QQBOT相关功能封装成api
Browse files Browse the repository at this point in the history
  • Loading branch information
NIANIANKNIA committed Apr 9, 2024
1 parent ccec46b commit bf09a8b
Show file tree
Hide file tree
Showing 5 changed files with 328 additions and 80 deletions.
7 changes: 4 additions & 3 deletions NIAHttpBOT/src/NIAHttpBOT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ signed int main(signed int argc, char** argv) {
res.set_content(cmdres, "text/plain"), res.status = excd; // exitCode
});

init_game_API(svr);

init_file_API(svr);

if (UseQQBot) {
INFO("已启用QQ机器人相关功能!");
Expand All @@ -192,6 +189,10 @@ signed int main(signed int argc, char** argv) {
WARN("未启用QQ机器人相关功能!");
}

init_game_API(svr);

init_file_API(svr);

svr.listen(IPAddress, ServerPort);

return 0;
Expand Down
Loading

0 comments on commit bf09a8b

Please sign in to comment.