mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2026-04-27 00:35:38 +00:00
统一格式(无实质改动) & 添加了图片 (#23)
* 修复了style和script标签无法去除的问题 * 添加了图片展示 & 统一了引号格式 * 添加了图片展示 & 统一了引号格式 * 统一引号格式并异步处理函数
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import random
|
||||
|
||||
# Random Turntable
|
||||
async def random_turntable(upper: int, lower: int = "0"):
|
||||
async def random_turntable(upper: int, lower: int):
|
||||
return random.randint(lower, upper)
|
||||
|
||||
# Number Calc
|
||||
def number_calc(a: str, b: str, op: str):
|
||||
async def number_calc(a: str, b: str, op: str):
|
||||
a, b = float(a), float(b)
|
||||
match op:
|
||||
case "+":
|
||||
|
||||
Reference in New Issue
Block a user