Code 1:
module.exports = [{
name: 'test',
code: `$reactionCollector[$channelID;$get[m];everyone;10m;⏰;sla;true;{"id": "$get[m]"}]
$addMessageReactions[$channelID;$get[m];⏰]
$let[m;$channelSendMessage[$channelID;Reaja;true]]
`
},{
name: 'sla',
type: 'awaited',
code: `
$setMessageVar[confirm;true;$awaitData[id]]
$sendMessage[ola $awaitData[test] | $channelID | $authorID | $interactionData[message.id]]
$onlyIf[$getMessageVar[confirm;$awaitData[id]]==false;]
`
}]
Code 2:
module.exports = [{
name: 'atm',
aliases: ['banco', 'saldo', 'conta', 'bal', 'balance', 'money', 'dinheiro', 'dinheiros'],
$if: 'old',
code: `
$reply
⭐ › <@$authorID>, $get[msg] **$numberSeparator[$getGlobalUserVar[sucos;$get[user]];,]** Sucos e você sabia que $get[v] está na posição **#$get[top]**? para ver outros milionários use \`$getGuildVar[prefixx]rank\`.
$if[$globalUserLeaderBoard[sucos;asc;{id};1;1]!=]
$let[top;$replaceText[$replaceText[$checkCondition[$getLeaderboardInfo[sucos;$get[user];global;top]==0];true;$sum[$getLeaderboardInfo[sucos;$globalUserLeaderBoard[sucos;desc;{id};1;1;main];global;top];1]];false;$getLeaderboardInfo[sucos;$get[user];global;top]]]
$else
$let[top;1]
$endif
$let[msg;$replaceText[$replaceText[$checkCondition[$get[user]==$authorID];true;Você atualmente possui];false;$username[$get[user]] atualmente possui]]
$let[v;$replaceText[$replaceText[$checkCondition[$username[$get[user]]==$username];true;você];false;$username[$get[user]]]]
$let[user;$findUser[$message[1];true]]
$onlyIf[$guildID!=;😪 › Opsie, meus comandos estão apenas disponíveis para servidores, tente usar meus comandos em um]
`
}]
Note: I'm on version 18 of node.js and in github version (6.7.5)
Version of aoi.js
v6.6.1
Version of Node.js
v16.11.0 (Lowest)
Excepted Output
Well I was trying at first in the first code return the authorID of the person who just clicked on the reaction, but only the author of the person who executed the command appears
And in the second code, a leaderboard position appears where it doesn't exist or I'm not
Relevant log output
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Bug Type
Function
Bugged Function
Version of aoi.js
v6.6.1
Version of Node.js
v16.11.0 (Lowest)
Excepted Output
Well I was trying at first in the first code return the authorID of the person who just clicked on the reaction, but only the author of the person who executed the command appears And in the second code, a leaderboard position appears where it doesn't exist or I'm not
Relevant log output
No response
Code of Conduct