Categorygithub.com/MathisBurger/commander
repositorypackage
0.0.5
Repository: https://github.com/mathisburger/commander.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Commander


A lightweight command handler for discordgo

Information


The Commander is a lightweight command handler build for discordgo. You can use it to control the command execution of your commands. It is easy to setup and use. Test it out yourself!

Documentation

Install the library with:

go get -t github.com/MathisBurger/commander

Example:

// Init command handler
handler := commander.New(";;", "826378911444500501")

// add command to handler
handler.Register("example", "Example command", ExampleCommand, 100)

// add handler to discord session
session.AddHandler(handler.Execute)

Note: The permission system is not working in v0.0.1

Examples