🔍 /
🧮 Funções

⏱️ Tempo

Funções globais — chame diretamente pelo nome, sem prefixo.

📝Every time parameter below accepts 3 formats: a number in milliseconds (60000), a duration as text ("1h", "30m", "10s", "2d"), or a fixed time in "HH:MM" format (e.g. "9:00") — in which case it runs the next time that time comes around.

Exemplo

on command("bomdia", message, args)
  schedule("9:00", message.channel, "☀️ Bom dia!", { recorrente: true })
  message.reply("Agendado pra todo dia às 9h.")
end

on command("lembrar", message, args)
  if not cooldown("lembrar", "1m") then
    message.reply("⏳ Espera um pouco antes de criar outro lembrete.")
    return
  end
  schedule("1h", message.channel, "⏰ Lembrete: " .. args._[0])
  message.reply("Beleza! Te lembro em 1 hora.")
end