Преглед на файлове

Remove daily quota limit

denikson преди 6 години
родител
ревизия
1a04afb109
променени са 1 файла, в които са добавени 0 реда и са изтрити 10 реда
  1. 0 10
      commands/facemorph.js

+ 0 - 10
commands/facemorph.js

@@ -136,16 +136,6 @@ const onDirectMention = (msg, content, actionsDone) => {
         return false;
     }
 
-    let todayQuota = db.get("faceEditInfo.todayRequests").value();
-    let maxQuota = db.get("faceEditInfo.customRequestsPerDay").value();
-    
-    if (todayQuota >= maxQuota) {
-        msg.channel.send(`${msg.author.toString()} Nice image, but I can't do anything to it! (Daily quota hit)`);
-        return true;
-    }
-
-    db.set("faceEditInfo.todayRequests", todayQuota + 1).write();
-
     processFaceSwap(
         msg, 
         image.url,