From 75df974f6fa47291eedadbea8bffbce7b90acfac Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 15 Apr 2024 18:30:58 +0200 Subject: feat(command): top --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 4cd19fa..ed84b8a 100644 --- a/main.go +++ b/main.go @@ -92,7 +92,11 @@ func main() { "Salon textuel par défaut", ).IsRequired()). SetHandler(commands.ConfigFallbackChannel), - ) + ).SetPermission(gokord.AdminPermission) + + topCmd := gokord.NewCommand("top", "Copaings les plus actifs"). + HasOption(). + SetHandler(commands.Top) bot := gokord.Bot{ Token: token, @@ -106,6 +110,7 @@ func main() { Commands: []*gokord.GeneralCommand{ rankCmd, configCmd, + topCmd, }, AfterInit: afterInit, } -- cgit v1.2.3