From 82c2cd30f515fd121bae580555d51cb66fec4c64 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 25 Mar 2025 02:09:05 -0400 Subject: Initial commit --- BOT TIMER.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 BOT TIMER.txt (limited to 'BOT TIMER.txt') 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 -- cgit v1.2.3