diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-25 02:09:05 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-25 02:09:05 -0400 |
| commit | 82c2cd30f515fd121bae580555d51cb66fec4c64 (patch) | |
| tree | c2c23b0690a42155917b5b74c6ee63e0ca4a200b /BOT TIMER.txt | |
| download | AleeBot-APF-82c2cd30f515fd121bae580555d51cb66fec4c64.tar.gz AleeBot-APF-82c2cd30f515fd121bae580555d51cb66fec4c64.tar.bz2 AleeBot-APF-82c2cd30f515fd121bae580555d51cb66fec4c64.zip | |
Initial commit
Diffstat (limited to 'BOT TIMER.txt')
| -rwxr-xr-x | BOT TIMER.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/BOT TIMER.txt b/BOT TIMER.txt new file mode 100755 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 |
