timer, wip

This commit is contained in:
Flummi
2018-03-03 02:40:07 +01:00
parent 3bc2aa2b44
commit 14d5bdb183
4 changed files with 54 additions and 1 deletions

19
src/inc/trigger/timer.mjs Normal file
View File

@@ -0,0 +1,19 @@
import timer from "./lib/timer";
export default bot => {
bot._trigger.set("timer", new bot.trigger({
call: /^(\.|\/)timer .*/i,
set: "nxy",
help: {
text: "(WIP) Sets a timer, delay can be: s, m, h, d, w, mon, y",
usage: "[b].timer[/b] [i]<delay>[/i] [i]<message>[/i]..."
},
f: e => {
//e.reply(
timer.add(e.args.shift(), () => {
e.reply(e.args.join(" "));
});
//);
}
}));
};