Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JoinChang authored Feb 10, 2021
1 parent b5ed2c8 commit d7bbf82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ async def _(app: Mirai, event: BotInvitedJoinGroupRequestEvent):
await app.respondRequest(event, 1) # 自动同意入群邀请
return True

@app.receiver("AppInitEvent")
async def _(app: Mirai):
print("应用初始化完成,您可以在此直接获取到 app")

if __name__ == "__main__":
app.run()
```
Expand Down

0 comments on commit d7bbf82

Please sign in to comment.