Skip to content

Commit

Permalink
insert!
Browse files Browse the repository at this point in the history
  • Loading branch information
krau committed Dec 25, 2024
1 parent 727b5e9 commit fac8ca8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kmua/callbacks/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def super_resolute(update: Update, context: ContextTypes.DEFAULT_TYPE):
if context.args:
task_id = context.args[0]
if not re.match(r"^\d+-\d+$", task_id):
await message.reply_text("请不要输入奇怪的东西")
await message.reply_text("请不要插入奇怪的东西")
return
if common.redis_client:
file_id = common.redis_client.get(f"kmua_sr_{task_id}")
Expand Down
2 changes: 1 addition & 1 deletion kmua/callbacks/quote.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async def set_quote_probability(update: Update, context: ContextTypes.DEFAULT_TY
float_pattern = re.compile(r"^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$")
value = context.args[0]
if not float_pattern.match(value) or len(value) > 8:
await message.reply_text("请不要输入奇怪的东西> <")
await message.reply_text("请不要插入奇怪的东西> <")
return
try:
probability = float(value)
Expand Down
2 changes: 1 addition & 1 deletion kmua/callbacks/userdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def refresh_user_data_by_id(update: Update, context: ContextTypes.DEFAULT_

chat_id = context.args[0]
if not re.match(r"^-?\d+$", chat_id):
await update.effective_message.reply_text("请不要输入奇怪的东西")
await update.effective_message.reply_text("请不要插入奇怪的东西")
return

user = update.effective_user
Expand Down

0 comments on commit fac8ca8

Please sign in to comment.