7f6059d5b7
We are not allowed to mess with the connection object directly according to the public api surface of the framework
17 lines
266 B
TypeScript
17 lines
266 B
TypeScript
import {PluginInputHandler} from "./index";
|
|
|
|
const commands = ["raw", "send", "quote"];
|
|
|
|
const input: PluginInputHandler = function ({irc}, chan, cmd, args) {
|
|
if (args.length !== 0) {
|
|
irc.raw(...args);
|
|
}
|
|
|
|
return true;
|
|
};
|
|
|
|
export default {
|
|
commands,
|
|
input,
|
|
};
|