增加角色图像
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/miao-plugin.iml" filepath="$PROJECT_DIR$/.idea/miao-plugin.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -1,52 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="8b7e4a51-6647-4b82-a102-b4b894d7928f" name="Changes" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/apps/character.js" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/apps/character/character.css" beforeDir="false" afterPath="$PROJECT_DIR$/resources/character/character.css" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/apps/character/character.html" beforeDir="false" afterPath="$PROJECT_DIR$/resources/character/character.html" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/apps/character/character.js" beforeDir="false" afterPath="$PROJECT_DIR$/config.js" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/apps/character/h.jpg" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/apps/character/w.jpg" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/index.js" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/miao-plugin.js" beforeDir="false" afterPath="$PROJECT_DIR$/miao-plugin.js" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="ProjectId" id="26q2WrgqGMhiO9lAOk0fE9BWvtL" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
||||
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="vue.rearranger.settings.migration" value="true" />
|
||||
</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="8b7e4a51-6647-4b82-a102-b4b894d7928f" name="Changes" comment="" />
|
||||
<created>1648136859374</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1648136859374</updated>
|
||||
<workItem from="1648136860539" duration="1102000" />
|
||||
<workItem from="1648140745824" duration="69000" />
|
||||
<workItem from="1648140890688" duration="1838000" />
|
||||
<workItem from="1648224805226" duration="302000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
</project>
|
47
apps/admin.js
Normal file
@ -0,0 +1,47 @@
|
||||
export async function userStat(e) {
|
||||
|
||||
if (!e.isMaster) {
|
||||
// e.reply("暂无权限");
|
||||
return;
|
||||
}
|
||||
let ret = /\d+/.exec(e.msg)
|
||||
|
||||
if (ret && ret[0]) {
|
||||
|
||||
if (ret[0] * 1 < 100) {
|
||||
let msg = [];
|
||||
let keys = Object.keys(NoteCookie).reverse().slice(0, ret[0] * 1);
|
||||
for (let idx in keys) {
|
||||
msg.push(`QQ${keys[idx]},UID${NoteCookie[keys[idx]].uid}\n`)
|
||||
}
|
||||
e.reply(msg);
|
||||
} else {
|
||||
if (NoteCookie && NoteCookie[ret[0]]) {
|
||||
e.reply(`QQ${ret[0]}的UID是 ${NoteCookie[ret[0]].uid}`);
|
||||
} else {
|
||||
e.reply(`未查找到${ret[0]}`)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
let count = Object.keys(NoteCookie).length
|
||||
e.reply(`共有 ${count} 个用户`)
|
||||
}
|
||||
}
|
||||
|
||||
export async function rebuildCookie(e) {
|
||||
if (!e.isMaster) {
|
||||
return;
|
||||
}
|
||||
let count = 0;
|
||||
for (let qq in NoteCookie) {
|
||||
let uid = NoteCookie[qq].uid;
|
||||
if (uid) {
|
||||
redis.set(`genshin:uid:${qq}`, uid, { EX: 2592000 });
|
||||
redis.set(`genshin:qq-uid:${qq}`, uid, { EX: 2592000 });
|
||||
redis.set(`genshin:uid-qq:${uid}`, qq, { EX: 2592000 });
|
||||
count++;
|
||||
}
|
||||
}
|
||||
e.reply(`重建${count}个缓存`)
|
||||
}
|
3
config_default.js
Normal file
@ -0,0 +1,3 @@
|
||||
export default{
|
||||
|
||||
}
|
11
index.js
@ -9,8 +9,17 @@ export const rule = {
|
||||
priority: 208,
|
||||
},
|
||||
|
||||
userStat: {
|
||||
reg: "^#*user\s*\d*",
|
||||
priority: 200
|
||||
},
|
||||
rebuildCookie: {
|
||||
reg: "#rebuild"
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
import { character, setCharacterImg } from "./apps/character.js";
|
||||
import {userStat, rebuildCookie} from "./apps/admin.js";
|
||||
|
||||
export { character, setCharacterImg };
|
||||
export { character, setCharacterImg, userStat, rebuildCookie };
|
||||
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
BIN
resources/characterImg/七七/09.jpg
Normal file
After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 427 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
BIN
resources/characterImg/优菈/04.jpg
Normal file
After Width: | Height: | Size: 14 MiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
BIN
resources/characterImg/优菈/09.jpg
Normal file
After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 44 KiB |
BIN
resources/characterImg/八重神子/01.jpg
Normal file
After Width: | Height: | Size: 614 KiB |
BIN
resources/characterImg/八重神子/02.jpg
Normal file
After Width: | Height: | Size: 338 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
BIN
resources/characterImg/八重神子/08.jpg
Normal file
After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 66 KiB |
BIN
resources/characterImg/刻晴/01.jpg
Normal file
After Width: | Height: | Size: 592 KiB |
BIN
resources/characterImg/刻晴/02.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
resources/characterImg/刻晴/03.jpg
Normal file
After Width: | Height: | Size: 330 KiB |
BIN
resources/characterImg/刻晴/04.jpg
Normal file
After Width: | Height: | Size: 322 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
BIN
resources/characterImg/刻晴/08.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
resources/characterImg/刻晴/09.jpg
Normal file
After Width: | Height: | Size: 151 KiB |
Before Width: | Height: | Size: 5.6 MiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 163 KiB |
BIN
resources/characterImg/刻晴/11.png
Normal file
After Width: | Height: | Size: 1024 KiB |
BIN
resources/characterImg/刻晴/12.jpg
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
resources/characterImg/刻晴/13.jpg
Normal file
After Width: | Height: | Size: 238 KiB |
BIN
resources/characterImg/刻晴/14.jpg
Normal file
After Width: | Height: | Size: 214 KiB |
BIN
resources/characterImg/刻晴/15.jpg
Normal file
After Width: | Height: | Size: 286 KiB |
BIN
resources/characterImg/刻晴/16.jpg
Normal file
After Width: | Height: | Size: 397 KiB |
Before Width: | Height: | Size: 8.0 MiB |
Before Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 60 KiB |
BIN
resources/characterImg/可莉/01.png
Normal file
After Width: | Height: | Size: 783 KiB |
BIN
resources/characterImg/可莉/02.png
Normal file
After Width: | Height: | Size: 710 KiB |
BIN
resources/characterImg/可莉/03.png
Normal file
After Width: | Height: | Size: 706 KiB |
BIN
resources/characterImg/可莉/04.png
Normal file
After Width: | Height: | Size: 673 KiB |
BIN
resources/characterImg/可莉/05.png
Normal file
After Width: | Height: | Size: 660 KiB |
BIN
resources/characterImg/可莉/06.png
Normal file
After Width: | Height: | Size: 613 KiB |
BIN
resources/characterImg/可莉/07.png
Normal file
After Width: | Height: | Size: 586 KiB |
BIN
resources/characterImg/可莉/08.png
Normal file
After Width: | Height: | Size: 545 KiB |
BIN
resources/characterImg/可莉/09.png
Normal file
After Width: | Height: | Size: 544 KiB |
Before Width: | Height: | Size: 93 KiB |
BIN
resources/characterImg/可莉/10.png
Normal file
After Width: | Height: | Size: 493 KiB |
BIN
resources/characterImg/可莉/11.jpg
Normal file
After Width: | Height: | Size: 486 KiB |
BIN
resources/characterImg/可莉/12.jpg
Normal file
After Width: | Height: | Size: 409 KiB |
BIN
resources/characterImg/可莉/13.jpg
Normal file
After Width: | Height: | Size: 229 KiB |
BIN
resources/characterImg/可莉/14(1).jpg
Normal file
After Width: | Height: | Size: 194 KiB |
BIN
resources/characterImg/可莉/15.jpg
Normal file
After Width: | Height: | Size: 191 KiB |
BIN
resources/characterImg/可莉/16.jpg
Normal file
After Width: | Height: | Size: 160 KiB |
BIN
resources/characterImg/可莉/17.jpg
Normal file
After Width: | Height: | Size: 131 KiB |
BIN
resources/characterImg/可莉/18.jpg
Normal file
After Width: | Height: | Size: 129 KiB |
BIN
resources/characterImg/可莉/19.jpg
Normal file
After Width: | Height: | Size: 112 KiB |
BIN
resources/characterImg/可莉/20.jpg
Normal file
After Width: | Height: | Size: 93 KiB |