feat(command): top
This commit is contained in:
parent
7d4e050c3f
commit
75df974f6f
2 changed files with 47 additions and 1 deletions
7
main.go
7
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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue