build(docker): support of force command registration
This commit is contained in:
parent
31930986fb
commit
ad129e8ae4
5 changed files with 12 additions and 8 deletions
10
main.go
10
main.go
|
@ -12,8 +12,8 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
token string
|
||||
forgeCmdRegistering bool
|
||||
token string
|
||||
forceCmdRegistration bool
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -23,8 +23,8 @@ const (
|
|||
func init() {
|
||||
flag.StringVar(&token, "token", "", "token of the bot")
|
||||
flag.BoolVar(
|
||||
&forgeCmdRegistering,
|
||||
"forge-command-registering",
|
||||
&forceCmdRegistration,
|
||||
"forge-command-registration",
|
||||
false,
|
||||
"force the registration of command",
|
||||
)
|
||||
|
@ -164,7 +164,7 @@ func main() {
|
|||
},
|
||||
AfterInit: afterInit,
|
||||
}
|
||||
bot.Start(forgeCmdRegistering)
|
||||
bot.Start(forceCmdRegistration)
|
||||
|
||||
xp.CloseRedisClient()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue