aoijs / aoi.js

aoi.js - The most advanced string-based package to create a Discord Bot fast and powerful.
https://aoi.js.org
Apache License 2.0
332 stars 132 forks source link

ONLYIF #211

Closed kamexik closed 3 years ago

kamexik commented 3 years ago

$OnlyIf[$getUserVar[moderation]==yes || $getUserVar[support]==no;Error]

If var will be on yes or another var will be so then the command works. He wants to make it possible, because one by one it is wrong

ElTuna commented 3 years ago

use $checkCondition

ElTuna commented 3 years ago

$onlyIf[$checkCondition[condition1]$checkCondition[condition2]!=falsefalse;error message]

kamexik commented 3 years ago

$onlyIf[$checkCondition[condition1]$checkCondition[condition2]!=falsefalse;error message]

Can you do when it has permissions in this?

ElTuna commented 3 years ago

yeah, you can choose the conditions

YuzuTheNeko commented 3 years ago

this change is probably impossible to achieve in aoijs conditions