add protection status

This commit is contained in:
shoopea 2021-11-10 14:55:31 +08:00
parent f84f36143e
commit 0d5c94e06f
2 changed files with 5 additions and 5 deletions

2
bot.go
View File

@ -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)
}

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "b43caf0"
var buildstamp = "2021-11-10_06:49:48"
var commits = "185"
var version = "b43caf0-b185 - 2021-11-10_06:49:48"
var githash = "f84f361"
var buildstamp = "2021-11-10_06:55:15"
var commits = "186"
var version = "f84f361-b186 - 2021-11-10_06:55:15"