This commit is contained in:
cdle
2021-09-16 10:39:34 +08:00
parent 3902741ada
commit 221ef5199f
2 changed files with 1 additions and 6 deletions
-6
View File
@@ -1,9 +1,3 @@
# im:
# - type: tg
# token: xxxxx
# masters:
# - 1000000
replies:
#文本类型的回复
- type: text
+1
View File
@@ -114,6 +114,7 @@ func (sender *Sender) Get(index ...int) string {
}
func (sender *Sender) IsAdmin() bool {
return strings.Contains(tg.Get("masters"), fmt.Sprint(sender.Message.Sender.ID))
}