Commands (currently not working) are members of Plugin class or classes which inherit from it. See: examples/src/basic.d Example usage: @Command("hello", "hello2") //The command may respond to multiple triggers. @Enabled(true) //false turns the command off. It may be re-enabled elsewhere in code at run-time. @Description("A command that says 'hello' in channel.") //A description of what the command does. @Group("Leet") //The group this command can respond to. @RegEx(true) //Defaults to true, but can disable RegEx handling for command triggers. @CommandLevel(1) //The power level that the command requires ( normal = 1, mod = 50, admin = 100,) void onHello(CommandEvent event) { event.msg.reply("Hello, world!"); }
Commands (currently not working) are members of Plugin class or classes which inherit from it. See: examples/src/basic.d Example usage: @Command("hello", "hello2") //The command may respond to multiple triggers. @Enabled(true) //false turns the command off. It may be re-enabled elsewhere in code at run-time. @Description("A command that says 'hello' in channel.") //A description of what the command does. @Group("Leet") //The group this command can respond to. @RegEx(true) //Defaults to true, but can disable RegEx handling for command triggers. @CommandLevel(1) //The power level that the command requires ( normal = 1, mod = 50, admin = 100,) void onHello(CommandEvent event) { event.msg.reply("Hello, world!"); }