Skip to content

Commit

Permalink
fix 0.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Feb 9, 2023
1 parent 20652fe commit 5d31684
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ async def aitalk(app: Ariadne, target: Target, sender: Sender, message: MessageC
if reply:
await app.send_message(sender, reply, quote=False if isinstance(target, Friend) else source)
return
if (message.has(At) and message.get_first(At).target == bot.config.mirai.account) or (
message.has(Quote) and message.get_first(Quote).sender_id == bot.config.mirai.account
if (message.has(At) and message.get_first(At).target == app.account) or (
message.has(Quote) and message.get_first(Quote).sender_id == app.account
):
reply = await random_ai(
app, sender, target, str(message.include(Plain, Face)).strip(" +")[:120], gpt=0.6, tx=0.3
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "raian-bot"
version = "0.19.0"
version = "0.19.1"
description = "simple qq bot bases on Araidne and Alconna"
authors = [
{name = "RF-Tar-Railt", email = "rf_tar_railt@qq.com"},
Expand Down

0 comments on commit 5d31684

Please sign in to comment.