2022-12-02 19:08:03 +00:00
|
|
|
---
|
2022-12-15 01:05:11 +00:00
|
|
|
title: Module commander
|
2022-12-03 20:54:34 +00:00
|
|
|
description: library for custom commands
|
2022-12-15 01:05:11 +00:00
|
|
|
layout: doc
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: "API"
|
2022-12-02 19:08:03 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
## Introduction
|
2022-12-03 20:54:34 +00:00
|
|
|
Commander is a library for writing custom commands in Lua.
|
2022-12-02 19:08:03 +00:00
|
|
|
|
|
|
|
## Functions
|
2022-12-03 20:54:34 +00:00
|
|
|
### deregister(name)
|
|
|
|
Deregisters any command registered with `name`
|
2022-12-02 19:08:03 +00:00
|
|
|
|
2022-12-03 20:54:34 +00:00
|
|
|
### register(name, cb)
|
|
|
|
Register a command with `name` that runs `cb` when ran
|
2022-12-02 19:08:03 +00:00
|
|
|
|