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

# 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


# Packages

No description provided by the author

# Functions

creates a new instance of the command handler returns the instance which can be used for registration and execution.

# Structs

The command struct it defines the data to register a command.
Main command handler struct.