Added the 'Selmer Specific' file, added the 'welcome' and 'setup' commands

This commit is contained in:
ION606
2022-06-10 16:19:47 +03:00
parent 789ca684ca
commit b441f6b773
12 changed files with 512 additions and 41 deletions
+4 -1
View File
@@ -116,7 +116,10 @@ function convertCurrency(id, amt, dbo) {
function checkAndUpdateBal(dbo, item, message, args) {
let b = false;
dbo.find({"balance": {$exists: true}}).toArray(b = function(err, doc) {
if (!String(doc)) { return message.reply("Your account doesn't exist, please contact the mods for support"); }
if (!String(doc)) {
message.reply("Your account doesn't exist, please contact the mods for support");
return false;
}
const icost = args[0] * item.cost;
if (doc[0].balance < icost) {