mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-01-26 18:12:47 +08:00
✨ 删除 mk_Common.py 和 mk_Info.py 文件,移除不再使用的功能
This commit is contained in:
parent
4581cab264
commit
81d9508f74
@ -1,45 +0,0 @@
|
||||
import random
|
||||
|
||||
|
||||
async def random_turntable(upper: int, lower: int):
|
||||
"""Random Turntable
|
||||
|
||||
Args:
|
||||
upper (int): _description_
|
||||
lower (int): _description_
|
||||
|
||||
Returns:
|
||||
_type_: _description_
|
||||
"""
|
||||
return random.randint(lower, upper)
|
||||
|
||||
|
||||
|
||||
async def number_calc(a: str, b: str, op: str) -> str:
|
||||
"""Number Calc
|
||||
|
||||
Args:
|
||||
a (str): _description_
|
||||
b (str): _description_
|
||||
op (str): _description_
|
||||
|
||||
Returns:
|
||||
str: _description_
|
||||
"""
|
||||
a, b = float(a), float(b) # type: ignore
|
||||
match op:
|
||||
case "+":
|
||||
return str(a + b) # type: ignore
|
||||
case "-":
|
||||
return str(a - b) # type: ignore
|
||||
case "*":
|
||||
return str(a * b) # type: ignore
|
||||
case "/":
|
||||
return str(a / b) # type: ignore
|
||||
case "**":
|
||||
return str(a**b) # type: ignore
|
||||
case "%":
|
||||
return str(a % b)
|
||||
case _:
|
||||
return "未知运算符"
|
||||
|
@ -1,8 +0,0 @@
|
||||
# Twisuki
|
||||
async def twisuki():
|
||||
return 'Twiuski(苏阳)是megakits插件作者, Github : "https://github.com/Twisuki"'
|
||||
|
||||
|
||||
# MegaKits
|
||||
async def megakits():
|
||||
return 'MegaKits插件是一个功能混杂的MarshoAI插件, 由Twisuki(Github : "https://github.com/Twisuki")开发, 插件仓库 : "https://github.com/LiteyukiStudio/marsho-toolsets/tree/main/Twisuki/marshoai-megakits"'
|
Loading…
x
Reference in New Issue
Block a user