mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-10 05:00:24 +08:00
optimize: hide caller & add preblock
This commit is contained in:
@@ -17,6 +17,11 @@ func (u *User) At() string {
|
||||
return "<@!" + u.ID + ">"
|
||||
}
|
||||
|
||||
// AtMe 返回 <@!bot.ready.User.ID>
|
||||
func (bot *Bot) AtMe() string {
|
||||
return "<@!" + bot.ready.User.ID + ">"
|
||||
}
|
||||
|
||||
// GetMyInfo 获取当前用户(机器人)详情
|
||||
//
|
||||
// https://bot.q.qq.com/wiki/develop/api/openapi/user/me.html
|
||||
|
||||
Reference in New Issue
Block a user