From a3738acf1915c03a1a3d0b3a2be0441f5bd4610d Mon Sep 17 00:00:00 2001 From: Brandon Johnson Date: Thu, 6 Jul 2017 16:49:18 +0100 Subject: Add files via upload (#3) --- BOT TIMER.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 BOT TIMER.txt diff --git a/BOT TIMER.txt b/BOT TIMER.txt new file mode 100644 index 0000000..4369b80 --- /dev/null +++ b/BOT TIMER.txt @@ -0,0 +1,10 @@ +Here is a timer you could add to aleebot + +newCommand("Timer", 0, "timer", "Times a thing", function(args, msgo) { +var interval; +function toRun() { +msgo.reply("You wanted me to remind you to do: " + args[2]); +clearInterval(interval) +} +setInterval(toRun, args[1]*60*1000); +}); \ No newline at end of file -- cgit v1.2.3