- š Hi, Iām @Andredego
- š Iām interested in ...
- š± Iām currently learning ...
- šļø Iām looking to collaborate on ...
- š« How to reach me ...
const botgram = require("botgram") const bot = botgram("")
bot.command("start", "help", (msg, reply) => reply.text("To schedule an alert, do: /alert "))
bot.command("alert", (msg, reply, next) => { var [ seconds, text ] = msg.args(2) if (!seconds.match(/^\d+$/) || !text) return next()
setTimeout(() => reply.text(text), Number(seconds) * 1000) })
bot.command((msg, reply) => reply.text("Invalid command."))