feat(command): top

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-15 18:30:58 +02:00
parent 7d4e050c3f
commit 75df974f6f
No known key found for this signature in database
GPG key ID: CF4550297832A29F
2 changed files with 47 additions and 1 deletions

View file

@ -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,
}