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
329 stars 130 forks source link

Bug: conditions checks break with vars which are not changed from the default value (6.8.0) #618

Closed papaaj closed 1 month ago

papaaj commented 2 months ago

Bug Type

Function

Bugged Function

$checkCondition[$let[test]!=$getGuildVar[prefix]] //Returns true
$let[test;!]

prefix: "!" //Default var value is !

Version of aoi.js

v6.7.1

Version of Node.js

v16.11.0 (Lowest)

Excepted Output

false

Relevant log output

No response

Code of Conduct

Mody-0 commented 1 month ago

That's not a bug, you have "!" as your default var value so naturally when you're trying to get your guild var it will return the default value unless changed. that's just how it works