|
@@ -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,
|