$awaitReactions
Same as $awaitCmdReactions except it waits for a reaction to the *bots* message and the bot will execute a command depending on the reaction.

FUNCTION USAGE

  • $awaitReactions[😊,πŸ˜”,...;userID;time;cmd1,cmd2,...;error message]
  • $addCmdReactions[346134859248659345;253944552341649389]
​
You must use the direct emoji! Invalid usage = :smile: Valid usage = πŸ˜€ Click here for a website full of copy/paste emojis that we allow
$awaitReactions[
πŸ”΄
,
πŸ”΅
,...;userID/everyone;time;command1,command2,...;error message] - waits for someone to react to the bots message. If the user reacts with "
πŸ”΄
", the command triggered will be "command1".
This is the command that you will execute to tell the bot to start waiting for the reaction
1
bot.Command({
2
name:"react",
3
code:`
4
$awaitReactions[πŸ”΄,πŸ”΅;everyone;30s;red,blue;You took too long to react!]
5
$addReactions[πŸ”΄;πŸ”΅]
6
React with πŸ”΄ or πŸ”΅
7
`
8
})
Copied!
When reacted to the red circle on the bots response, this command will execute
1
bot.AwaitedCommand({
2
name: "red",
3
code: "$username[] you just reacted to the red circle"
4
})
Copied!
When reacted to the blue circle on the bots response, this command will execute
1
bot.AwaitedCommand({
2
name: "blue",
3
code: "$username[] you just reacted to the blue circle"
4
})
Copied!
Credit: Thanks to Dejvy#0591 for the usage examples
Last modified 1yr ago
Copy link