Add shutdown and panic notifications and admin only commands
This commit is contained in:
12
commands/admin.go
Normal file
12
commands/admin.go
Normal file
@ -0,0 +1,12 @@
|
||||
package commands
|
||||
|
||||
var AdminIDs = []int64{126131628}
|
||||
|
||||
func IsAdmin(userID int64) bool {
|
||||
for _, id := range AdminIDs {
|
||||
if id == userID {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
Reference in New Issue
Block a user