aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
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,
}