3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00

Add lower function

This commit is contained in:
Usoka 2021-05-02 21:30:10 +12:00
parent edd78fc9c6
commit bb06c5ee33

View file

@ -308,6 +308,10 @@ const baseValues = {
if (end != null && isNaN(end)) return "";
return arg1.slice(parseInt(start, 10), end && parseInt(end, 10));
},
lower(arg) {
if (typeof arg !== "string") return arg;
return arg.toLowerCase();
},
rand(from, to, seed = null) {
if (isNaN(from)) return 0;