소스 검색

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,