update
This commit is contained in:
@@ -1,9 +1,3 @@
|
|||||||
# im:
|
|
||||||
# - type: tg
|
|
||||||
# token: xxxxx
|
|
||||||
# masters:
|
|
||||||
# - 1000000
|
|
||||||
|
|
||||||
replies:
|
replies:
|
||||||
#文本类型的回复
|
#文本类型的回复
|
||||||
- type: text
|
- type: text
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ func (sender *Sender) Get(index ...int) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (sender *Sender) IsAdmin() bool {
|
func (sender *Sender) IsAdmin() bool {
|
||||||
|
|
||||||
return strings.Contains(tg.Get("masters"), fmt.Sprint(sender.Message.Sender.ID))
|
return strings.Contains(tg.Get("masters"), fmt.Sprint(sender.Message.Sender.ID))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user