$awaitMessages
$awaitMessage will wait for a specific message to be sent or until the bot is rebooted!

FUNCTION USAGE

  • $awaitMessages[message;userID/everyone;time;command;error message]
1
bot.Command({
2
name: "await",
3
code: "$awaitMessages[ok;everyone;10s;oof;Something went wrong]"
4
});
Copied!
1
bot.AwaitedCommand({
2
name: "oof",
3
code: "Its working"
4
});
Copied!
  1. 1.
    Type the command ?await
  2. 2.
    Within the time limit, you must say ok
  3. 3.
    The command oof will then execute
  4. 4.
    If the word ok is not said in the time limit, you'll get the error message
Last modified 10mo ago
Copy link