add protection status
This commit is contained in:
2
bot.go
2
bot.go
@@ -132,7 +132,7 @@ func botDelete(m *tb.Message) {
|
||||
func botCompanies(m *tb.Message) {
|
||||
str := "Companies :"
|
||||
for k, v := range srv.Status.Companies {
|
||||
str = str + "\r\n" + fmt.Sprintf(" - %s (%d)", v.Name, k)
|
||||
str = str + "\r\n" + fmt.Sprintf(" - %s (%d - %t)", v.Name, k, v.Protected)
|
||||
}
|
||||
bot.SendChat(m.Chat.ID, str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user