From ad129e8ae47fd9cd151115b6f5b84e7eae979d6d Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sat, 27 Apr 2024 18:36:42 +0200 Subject: build(docker): support of force command registration --- main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index a33fe30..9964269 100644 --- a/main.go +++ b/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() } -- cgit v1.2.3