diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-15 18:30:58 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-15 18:30:58 +0200 |
| commit | 75df974f6fa47291eedadbea8bffbce7b90acfac (patch) | |
| tree | 4f6f1c15b324baf7f639e287fd451f901fabab95 /main.go | |
| parent | 7d4e050c3f709dc192c1aef66b26221436a0e7f5 (diff) | |
feat(command): top
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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, } |
