diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-14 17:41:29 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-14 17:41:29 +0200 |
| commit | 3e06848f7280d03af7d2aacd6b4146ec7cf7c04e (patch) | |
| tree | 6e7a15df36b24bdb5cd5b71113d1e10c703262d0 /main.go | |
| parent | 1078cf3deb94ef22c65510b42c8e7f0dc50a036a (diff) | |
feat(xp): rank command
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -3,6 +3,7 @@ package main import ( "flag" "github.com/anhgelus/gokord" + "github.com/anhgelus/les-copaings-bot/commands" "github.com/anhgelus/les-copaings-bot/xp" "github.com/bwmarrin/discordgo" ) @@ -25,15 +26,15 @@ func main() { panic(err) } - //rankCmd := gokord.NewCommand("rank", "Affiche le niveau d'une personne"). - // HasOption(). - // AddOption(gokord.NewOption( - // discordgo.ApplicationCommandOptionUser, - // "copaing", - // "Le niveau du Copaing que vous souhaitez obtenir", - // )). - // SetHandler(commands.Rank). - // ToCmd() + rankCmd := gokord.NewCommand("rank", "Affiche le niveau d'une personne"). + HasOption(). + AddOption(gokord.NewOption( + discordgo.ApplicationCommandOptionUser, + "copaing", + "Le niveau du Copaing que vous souhaitez obtenir", + )). + SetHandler(commands.Rank). + ToCmd() bot := gokord.Bot{ Token: token, @@ -45,7 +46,7 @@ func main() { }, }, Commands: []*gokord.Cmd{ - //rankCmd, + rankCmd, }, AfterInit: afterInit, } |
