aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-01-22 20:10:21 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-01-22 20:10:21 +0100
commit8255a2e51454049f3ac1532f6e1125f528691c37 (patch)
tree064b7dbdd07efd85162c954d20c1dcd831ea84f6 /main.go
parenteee2a3873e11bef6bee2f71cf429c8a870c5383c (diff)
refactor(commands): use new handlers
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.go b/main.go
index 1d70d93..3cfc289 100644
--- a/main.go
+++ b/main.go
@@ -213,6 +213,15 @@ func main() {
dynamicid.HandleDynamicMessageComponent(events, rolereact.HandleSetReaction, rolereact.SetRoleReaction)
dynamicid.HandleDynamicMessageComponent(events, rolereact.HandleDelRole, rolereact.DelRole)
+ // commands
+ intrs.HandleCommand("rank", commands.Rank)
+ intrs.HandleCommand("config", commands.ConfigCommand)
+ intrs.HandleCommand("top", commands.Top)
+ intrs.HandleCommand("reset", commands.Reset)
+ intrs.HandleCommand("reset-user", commands.ResetUser)
+ intrs.HandleCommand("credits", commands.Credits)
+ intrs.HandleCommand("rolereact", rolereact.HandleCommand)
+
// interaction: /config
intrs.HandleMessageComponent(commands.OpenConfig, commands.ConfigMessageComponent)
// xp role related