aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BOT TIMER.txt10
1 files changed, 10 insertions, 0 deletions
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