go fmt
This commit is contained in:
parent
61214ca405
commit
b7c01addcf
@ -21,7 +21,7 @@ var adminCommands = map[string]func(BotController, tgbotapi.Update, User){
|
|||||||
"/setchannelid": handleDefaultMessage, // just type it in channel which one is supposed to be lined with bot
|
"/setchannelid": handleDefaultMessage, // just type it in channel which one is supposed to be lined with bot
|
||||||
}
|
}
|
||||||
|
|
||||||
var nearDatesApril = []int {1, 3} // why? because it is as temporal as it can be
|
var nearDatesApril = []int{1, 3} // why? because it is as temporal as it can be
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var bc = GetBotController()
|
var bc = GetBotController()
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
var assets = map[string]string {
|
var assets = map[string]string{
|
||||||
"Стартовая картинка": "preview_image",
|
"Стартовая картинка": "preview_image",
|
||||||
"Приветственный текст": "start",
|
"Приветственный текст": "start",
|
||||||
"Кнопка для заявки": "leave_ticket_button",
|
"Кнопка для заявки": "leave_ticket_button",
|
||||||
@ -13,7 +13,9 @@ var assets = map[string]string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func handlePanel(bc BotController, user User) {
|
func handlePanel(bc BotController, user User) {
|
||||||
if !user.IsAdmin() {return}
|
if !user.IsAdmin() {
|
||||||
|
return
|
||||||
|
}
|
||||||
if !user.IsEffectiveAdmin() {
|
if !user.IsEffectiveAdmin() {
|
||||||
bc.db.Model(&user).Update("RoleBitmask", user.RoleBitmask|0b10)
|
bc.db.Model(&user).Update("RoleBitmask", user.RoleBitmask|0b10)
|
||||||
sendMessage(bc, user.ID, "You was in usermode, turned back to admin mode...")
|
sendMessage(bc, user.ID, "You was in usermode, turned back to admin mode...")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user