mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
成了吗?
This commit is contained in:
parent
63ea5f0178
commit
91086d01a5
1
ica-rs/plugins/md5/assets/gAd.md
Normal file
1
ica-rs/plugins/md5/assets/gAd.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
@@ABMECIGUB@OK@CHBAA@FCMFNBEABCICEG@DJDGBGHMDALBAHHEDIEFB@AACFLCFDC@ABIC@DBLIABFPCFDCTD@B@@ID@@EHDI@GDGFDAH@ABBAGBBF@PKALADHG@AAOC@EJ@@FCHC@MLKBAHBGDAKDGA\C@A@FHE@TTHWCGHJBBAFBSGCAAF@I@D@A@AC@AGIFXHBAEU@@@AMTGFF@AAIBJGAKAAAE@BJIMH@CAAHAABC@DD@L@AABEDFECBCT@BGED@GDF@CFDDGH@ACDBDH@DAFOBBIKD@ICJGCAH@GBADBDGDH@@DIY@BFDEOEAS@G@DIN@GABNHECOCBEAHPBC@AIBDAFBDWB@GCAB@EACD@DE@@FFDB@JBFAENJ@L@JMM@R@JD@@DBCFCDAB@@@EBABCEA@PAEBKB@@@DXBCACFABCDFBIAFDBAEAFCY@LB@EHH@B@BIIDFGDOCH@EB@LFCCCDCE@BF@DG@LNDQKKCC@FACDFCGBCSC@CLI@CHLBHELHA@BCA@AABSBBBNBFI@MBCMB@UB@PNA@DEJ_GOD@DKDBIMC@BMBBADFVEB@DCBA@AG@HE@FDCE@AC@EBBL]@AF@@A@FBHBECJAFDAMBA@EBEICGFDCEBADMC@LC@FH@D@@EEBAFPAHIAAACBBD@BBBCCDCB@GDHCMHAGAGA@HVBFCRCDHCJBERJBBEBEIGOAD@WBDCDKAACK@BAMAOADFE@@EUFAF@NKICDFBFWLAIICBABBKWBGLLZAGHBA@AB@A@DEBG@HER@CDAO@@FCDA@EOFB@DBOJRAAAABCAFFDBAAKDB@ACD@FC@I@@EB@HHCBGCCLCB@BDBA@BFBBHNIA@DDQA@@@EAO@EHIGBOAFSAZCG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A@@@CKC@DAHCGEMJOBGZ@A@CB@AD@ECQ@DAZNN@ACC@@CECDCJAFNJRGBGG@NCBJ@@BI@DBIDCO@B@CCDAAMTGGGCAKDGG@A@ALBA@@FDQ@BA@AB@AVKDJED@@@CDLFC@@C@PCBMCDK@IEHCEAC@CRCOBCAFAGEFUK@@BADGAUFBFIA@H@AI@DDB@BGAAHLVC@KCKBDCBBACHC@A@NI@BEBDIFVF@AGBCIELDIZABAJAFD@AUKS@DJ@@DD@BMHABFBE@IBBDBADAM@GMDBHD@@EAD@BEADGPGGAAFEEABBECKIBAW@BEEQE@DD@FCCAEHJFB@C@E@BMJCB@ALGD@CBC@F@AFJDECAAA@BEO@EBNACDCUH@@K@A@DB@BFECFMAEHDBAEEADFB@EE@CI@ABDBDCAD@A@@B@JCB@FAGJCK@GG@ABFLQ@BHDEHOAB@DBIDSBDBIVA@FD@@ABCAAAA
|
176
ica-rs/plugins/md5/assets/zh.json
Normal file
176
ica-rs/plugins/md5/assets/zh.json
Normal file
|
@ -0,0 +1,176 @@
|
||||||
|
{
|
||||||
|
"recover": "[1]回复体力[2]点",
|
||||||
|
"sklAbsorb": "[0]发起[吸血攻击]",
|
||||||
|
"sklAccumulate": "[0]开始[聚气]",
|
||||||
|
"sklAccumulated": "[1]攻击力上升",
|
||||||
|
"sklAccumulateCancel": "[1]的[聚气]被打消了",
|
||||||
|
"sklAssassinate1": "[0][潜行]到[1]身后",
|
||||||
|
"sklAssassinate2": "[0]发动[背刺]",
|
||||||
|
"dodge": "[0][回避]了攻击(通用)",
|
||||||
|
"sklAssassinateFailed": "[0]的[潜行]被识破",
|
||||||
|
"sklBerserkEnd": "[1]从[狂暴]中解除",
|
||||||
|
"sklBerserkAttack": "[0]发起[狂暴攻击]",
|
||||||
|
"sklBerserkHit": "[1]进入[狂暴]状态",
|
||||||
|
"sklBerserk": "[0]使用[狂暴术]",
|
||||||
|
"sklCharge": "[0]开始[蓄力]",
|
||||||
|
"sklChargeCancel": "[1]的[蓄力]被中止了",
|
||||||
|
"sklCharmEnd": "[1]从[魅惑]中解除",
|
||||||
|
"sklCharm": "[0]使用[魅惑]",
|
||||||
|
"sklCharmHit": "[1]被[魅惑]了",
|
||||||
|
"sklClone": "[0]使用[分身]",
|
||||||
|
"sklCloned": "出现一个新的[1]",
|
||||||
|
"sklCritical": "[0]发动[会心一击]",
|
||||||
|
"sklCurseDamage": "[诅咒]使伤害加倍",
|
||||||
|
"sklCurseEnd": "[1]从[诅咒]中解除",
|
||||||
|
"sklCurseHit": "[1]被[诅咒]了",
|
||||||
|
"sklCurse": "[0]使用[诅咒]",
|
||||||
|
"sklDisperse": "[0]使用[净化]",
|
||||||
|
"sklExchange": "[0]使用[生命之轮]",
|
||||||
|
"sklExchanged": "[1]的体力值与[0]互换",
|
||||||
|
"sklFire": "[0]使用[火球术]",
|
||||||
|
"sklHalf": "[0]使用[瘟疫]",
|
||||||
|
"sklHalfDamage": "[1]体力减少[2]%",
|
||||||
|
"sklHasteEnd": "[1]从[疾走]中解除",
|
||||||
|
"sklHaste": "[0]使用[加速术]",
|
||||||
|
"sklHasteHit": "[1]进入[疾走]状态",
|
||||||
|
"sklHeal": "[0]使用[治愈魔法]",
|
||||||
|
"sklIceEnd": "[1]从[冰冻]中解除",
|
||||||
|
"sklIceHit": "[1]被[冰冻]了",
|
||||||
|
"sklIce": "[0]使用[冰冻术]",
|
||||||
|
"sklIron": "[0]发动[铁壁]",
|
||||||
|
"sklIrond": "[0]防御力大幅上升",
|
||||||
|
"sklIronCancel": "[1]的[铁壁]被打消了",
|
||||||
|
"sklIronEnd": "[0]从[铁壁]中解除",
|
||||||
|
"sklPoisonDamage": "[1][毒性发作]",
|
||||||
|
"sklPoisonEnd": "[1]从[中毒]中解除",
|
||||||
|
"sklPoisonHit": "[1][中毒]",
|
||||||
|
"sklPoison": "[0][投毒]",
|
||||||
|
"sklQuake": "[0]使用[地裂术]",
|
||||||
|
"SklRapid": "[0]发起攻击",
|
||||||
|
"SklRapidNext": "[0][连击]",
|
||||||
|
"sklRevive": "[0]使用[苏生术]",
|
||||||
|
"sklRevived": "[1][复活]了",
|
||||||
|
"sklPossess": "[0]使用[附体]",
|
||||||
|
"sklShadow": "[0]使用[幻术]",
|
||||||
|
"sklShadowName": "幻影",
|
||||||
|
"sklShadowed": "召唤出[1]",
|
||||||
|
"sklSlowEnd": "[1]从[迟缓]中解除",
|
||||||
|
"sklSlow": "[0]使用[减速术]",
|
||||||
|
"sklSlowHit": "[1]进入[迟缓]状态",
|
||||||
|
"sklExplode": "[0]使用[自爆]",
|
||||||
|
"sklSummon": "[0]使用[血祭]",
|
||||||
|
"sklSummonName": "使魔",
|
||||||
|
"sklSummoned": "召唤出[1]",
|
||||||
|
"sklThunder": "[0]使用[雷击术]",
|
||||||
|
"sklThunderEnd": "[0][回避]了攻击(雷击)",
|
||||||
|
"benchmarking": "实力评估中...[2]%",
|
||||||
|
"benchmarkRatio": "》 胜率: [2]%",
|
||||||
|
"benchmarkScore": "》 实力评分: [2]",
|
||||||
|
"benchmarkSkill": "频率: [2]%",
|
||||||
|
"searchInvalid": "错误,目前最多支持8000人搜索",
|
||||||
|
"searchStart": "搜索开始...",
|
||||||
|
"searchEnd": "搜索结束",
|
||||||
|
"searchFailed": "但是一无所获",
|
||||||
|
"bossName_aokiji": "青雉",
|
||||||
|
"sklAokijiDefend": "[0][吸收]所有冰冻伤害",
|
||||||
|
"sklAokijiIceAge": "[0]使用[冰河时代]",
|
||||||
|
"bossName_conan": "柯南",
|
||||||
|
"sklConanKillUnknown": "[0]在一间密室中发现了一具无名尸体",
|
||||||
|
"sklConanThinking": "[0]正在进行推理",
|
||||||
|
"sklConanThinkingFinish": "[0]推理完毕",
|
||||||
|
"sklConanThinkingFinish2": "真相只有一个",
|
||||||
|
"sklConanThinkingFinish3": "凶手就是你",
|
||||||
|
"sklConanKillLast": "[1]",
|
||||||
|
"sklConanKill": "[0]在一间密室中发现了[1]的尸体",
|
||||||
|
"bossName_covid": "新冠病毒",
|
||||||
|
"sklCovidDamage": "[1][肺炎]发作",
|
||||||
|
"sklCovidICU": "[1]在重症监护室无法行动",
|
||||||
|
"sklCovidStayHome": "[1]在家中自我隔离",
|
||||||
|
"sklCovidInfect": "[0]和[1]近距离接触",
|
||||||
|
"sklCovidPrevent": "但[1]没被感染",
|
||||||
|
"sklAttack": "[0]发起攻击",
|
||||||
|
"sklCovidMutate": "[1]所感染的病毒发生变异",
|
||||||
|
"sklCovidHit": "[1]感染了[新冠病毒]",
|
||||||
|
"bossName_ikaruga": "斑鸠",
|
||||||
|
"sklIkarugaDefend": "[0][吸收]所有奇数伤害",
|
||||||
|
"sklIkarugaAttack": "[0]使用[能量释放]",
|
||||||
|
"bossName_lazy": "懒癌",
|
||||||
|
"sklLazyDamage": "[1][懒癌]发作",
|
||||||
|
"sklLazySkipTurn1": "[0]打开了[Steam]",
|
||||||
|
"sklLazySkipTurn2": "[0]打开了[守望先锋]",
|
||||||
|
"sklLazySkipTurn3": "[0]打开了[文明6]",
|
||||||
|
"sklLazySkipTurn4": "[0]打开了[英雄联盟]",
|
||||||
|
"sklLazySkipTurn5": "[0]打开了[微博]",
|
||||||
|
"sklLazySkipTurn6": "[0]打开了[朋友圈]",
|
||||||
|
"sklLazySkipTurn0": "这回合什么也没做",
|
||||||
|
"sklLazyHit": "[1]感染了[懒癌]",
|
||||||
|
"bossName_mario": "马里奥",
|
||||||
|
"bossMarioGrow10": "[0]得到[蘑菇]",
|
||||||
|
"bossMarioGrow11": "[0]攻击力上升",
|
||||||
|
"bossMarioGrow20": "[0]得到[火焰花]",
|
||||||
|
"bossMarioGrow21": "[0]学会[火球术]",
|
||||||
|
"bossMarioGrow30": "[0]得到[奖命蘑菇]",
|
||||||
|
"bossMarioLife": "[0]还剩[2]条命",
|
||||||
|
"bossMarioRevive": "[0]满血复活",
|
||||||
|
"bossName_mosquito": "蚊",
|
||||||
|
"bossName_saitama": "一拳超人",
|
||||||
|
"saitamaHungry": "[0]觉得有点饿",
|
||||||
|
"saitamaLeave": "[0]离开了战场",
|
||||||
|
"bossName_slime": "史莱姆",
|
||||||
|
"sklSlimeSpawn": "[0][分裂]",
|
||||||
|
"sklSlimeSpawned": "分成了[0] 和 [1]",
|
||||||
|
"bossName_sonic": "索尼克",
|
||||||
|
"bossName_yuri": "尤里",
|
||||||
|
"sklYuriControl": "[0]使用[心灵控制]",
|
||||||
|
"endMessage": "你已经玩了[0]局了",
|
||||||
|
"continueGame": "继续游戏",
|
||||||
|
"navigationLink": "navigation.html",
|
||||||
|
"errorMaxPlayer": "错误,目前最多支持1000人PK",
|
||||||
|
"errorMinPlayer": "错误,请至少输入两行名字",
|
||||||
|
"welcome": "名字竞技场",
|
||||||
|
"welcome2": "(MD5大作战10周年纪念)",
|
||||||
|
"winnerName": "胜者",
|
||||||
|
"score": "得分",
|
||||||
|
"killedCount": "击杀",
|
||||||
|
"killerName": "致命一击",
|
||||||
|
"loserName": "败者",
|
||||||
|
"returnTitle": "返回",
|
||||||
|
"shareTitle": "分享",
|
||||||
|
"helpTitle": "帮助",
|
||||||
|
"HP": "HP",
|
||||||
|
"detail": " 攻 [] 防 [] 速 [] 敏 [] 魔 [] 抗 [] 智 []",
|
||||||
|
"inputTitle": "名字竞技场",
|
||||||
|
"inputPlaceholder": "修改by shenjackyuanjie&超导体元素\n\n版本: latest\n可能会有一些问题, 稳定版请使用根目录下版本",
|
||||||
|
"startFight": "开 始",
|
||||||
|
"closeTitle": "关闭",
|
||||||
|
"fastTitle": "快进",
|
||||||
|
"challengeLabel": "挑战Boss",
|
||||||
|
"selectBossHint": "选择Boss",
|
||||||
|
"win": "[2]获得胜利",
|
||||||
|
"minionDie": "[1]消失了",
|
||||||
|
"damage": "[1]受到[2]点伤害",
|
||||||
|
"die": "[1]被击倒了",
|
||||||
|
"sklMagicAttack": "[0]发起攻击",
|
||||||
|
"sklCounter": "[0]发起[反击]",
|
||||||
|
"defend": "[0][防御]",
|
||||||
|
"sklHide": "[0]发动[隐匿]",
|
||||||
|
"sklMerge": "[0][吞噬]了[1]",
|
||||||
|
"sklMerged": "[0]属性上升",
|
||||||
|
"sklProtect": "[0][守护][1]",
|
||||||
|
"sklReflect": "[0]使用[伤害反弹]",
|
||||||
|
"sklReraise": "[0]使用[护身符]抵挡了一次死亡",
|
||||||
|
"sklUpgrade": "[0]做出[垂死]抗争",
|
||||||
|
"sklUpgraded": "[0]所有属性上升",
|
||||||
|
"sklUpgradeCancel": "[1]的[垂死]属性被打消",
|
||||||
|
"sklZombieName": "丧尸",
|
||||||
|
"sklZombie": "[0][召唤亡灵]",
|
||||||
|
"sklZombied": "[2]变成了[1]",
|
||||||
|
"weaponDeathNoteAtk": "[0]在[死亡笔记]写下[1]的名字",
|
||||||
|
"weaponRModifierUse": "[0]使用[属性修改器]",
|
||||||
|
"weaponS11_0": "[0]在促销日[购买]了武器",
|
||||||
|
"weaponS11_1": "但是并没有什么用",
|
||||||
|
"weaponS11_2": "增加了[2]点",
|
||||||
|
"weaponS11Done1": "[0]信用卡刷爆",
|
||||||
|
"weaponS11Done3": "[0]砍下了自己的左手",
|
||||||
|
"weaponS11Done2": "[0]砍下了自己的右手"
|
||||||
|
}
|
0
ica-rs/plugins/md5/input.txt
Normal file
0
ica-rs/plugins/md5/input.txt
Normal file
26737
ica-rs/plugins/md5/md5.js
Normal file
26737
ica-rs/plugins/md5/md5.js
Normal file
File diff suppressed because one or more lines are too long
43
ica-rs/plugins/namerena.py
Normal file
43
ica-rs/plugins/namerena.py
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
import time
|
||||||
|
import traceback
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
from typing import TYPE_CHECKING, TypeVar
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from ica_typing import IcaNewMessage, IcaClient, ConfigData
|
||||||
|
CONFIG_DATA: ConfigData
|
||||||
|
else:
|
||||||
|
CONFIG_DATA = None # type: ignore
|
||||||
|
IcaNewMessage = TypeVar("NewMessage")
|
||||||
|
IcaClient = TypeVar("IcaClient")
|
||||||
|
|
||||||
|
_version_ = "0.0.1"
|
||||||
|
|
||||||
|
def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None:
|
||||||
|
if not msg.content.startswith("/name"):
|
||||||
|
return
|
||||||
|
if msg.content.find("\n") == -1:
|
||||||
|
client.send_message(msg.reply_with("请使用 /name 命令,然后换行输入名字,例如:\n/name\n张三\n李四\n王五\n"))
|
||||||
|
return
|
||||||
|
# 去掉 /name
|
||||||
|
names = msg.content.split("/name")[1]
|
||||||
|
|
||||||
|
start_time = time.time()
|
||||||
|
# 开始 try
|
||||||
|
try:
|
||||||
|
# 内容写入到 ./md5/input.txt
|
||||||
|
with open("./md5/input.txt", "w") as f:
|
||||||
|
f.write(names)
|
||||||
|
# 执行 node md5.js
|
||||||
|
result = subprocess.run(["node", "md5/md5.js"], stdout=subprocess.PIPE)
|
||||||
|
# 获取结果
|
||||||
|
result = result.stdout.decode("utf-8")
|
||||||
|
# 发送结果
|
||||||
|
end_time = time.time()
|
||||||
|
reply = msg.reply_with(f"{result}\n耗时:{end_time - start_time:.2f}s\n版本:{_version_}")
|
||||||
|
client.send_message(reply)
|
||||||
|
except Exception as e:
|
||||||
|
# 发送错误
|
||||||
|
reply = msg.reply_with(f"发生错误:{e}\n{traceback.format_exc()}")
|
||||||
|
client.send_message(reply)
|
Loading…
Reference in New Issue
Block a user