Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
Soulter
2023-12-23 14:09:20 +08:00
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -91,6 +91,10 @@ class Command:
return True, self.web_search(message)
if self.command_start_with(message, "keyword"):
return True, self.keyword(message_obj, role)
if self.command_start_with(message, "ip"):
ip = requests.get("https://myip.ipip.net", timeout=5).text
return True, f"机器人 IP 信息:{ip}", "ip"
return False, None