diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-27 18:36:42 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-27 18:36:42 +0200 |
| commit | ad129e8ae47fd9cd151115b6f5b84e7eae979d6d (patch) | |
| tree | e2326d28314a923bff1e2a3ed3d30c50f66ba81f /main.go | |
| parent | 31930986fbff968d8517da0187c0de65d85ab79f (diff) | |
build(docker): support of force command registration
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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() } |
