aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 18:30:58 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-15 18:30:58 +0200
commit75df974f6fa47291eedadbea8bffbce7b90acfac (patch)
tree4f6f1c15b324baf7f639e287fd451f901fabab95 /main.go
parent7d4e050c3f709dc192c1aef66b26221436a0e7f5 (diff)
feat(command): top
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,
}