diff options
| author | Brandon Johnson <akidfromtheuk@sky.com> | 2017-07-06 16:49:18 +0100 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2017-07-06 11:49:18 -0400 |
| commit | a3738acf1915c03a1a3d0b3a2be0441f5bd4610d (patch) | |
| tree | a06e4fbae7dfab113861bf577a9c73c85ba87fb2 | |
| parent | 9d172693ea64f6c8db05764f155e765dcd612f72 (diff) | |
| download | AleeBot-a3738acf1915c03a1a3d0b3a2be0441f5bd4610d.tar.gz AleeBot-a3738acf1915c03a1a3d0b3a2be0441f5bd4610d.tar.bz2 AleeBot-a3738acf1915c03a1a3d0b3a2be0441f5bd4610d.zip | |
Add files via upload (#3)
| -rw-r--r-- | BOT TIMER.txt | 10 |
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 |
