silly_girl fix a bug (#212)

This commit is contained in:
Xtao_dada 2022-01-29 22:44:41 +08:00 committed by GitHub
parent 621dfa8157
commit e801df0fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -862,7 +862,7 @@
},
{
"name": "silly_girl",
"version": "1.01",
"version": "1.02",
"section": "chat",
"maintainer": "cdle",
"size": "3 kb",

View File

@ -134,6 +134,9 @@ async def poll(data):
persistent_vars["sillyGirl"]['init'] = True
await persistent_vars["sillyGirl"]['context'].edit("傻妞连接成功,愉快玩耍吧。")
except Exception as e:
await persistent_vars["sillyGirl"]['context'].edit('出错了呜呜呜 ~ 无法访问 傻妞 ')
try:
await persistent_vars["sillyGirl"]['context'].edit('出错了呜呜呜 ~ 无法访问 傻妞 ')
except:
return
await asyncio.sleep(1)
return