This commit is contained in:
Flummi
2016-08-31 07:37:41 +00:00
parent 805c7605c8
commit 7c87736cb3
3 changed files with 10 additions and 10 deletions

View File

@ -20,7 +20,7 @@ module.exports = (bot, trigger, lib) => {
lib.getUser(e, (cbgu) => {
lib.getCheckSum("./b/"+tmpdest+"."+cb.infos.ext, (cbcs) => {
lib.checkRepostCheckSum(cbcs, (cbcrcs) => {
if(cbcrcs) {
if(cbcrcs === true) {
lib.sql.query("insert into `f0ck`.`items` (`src`,`dest`,`mime`,`size`,`checksum`,`username`,`userchannel`,`usernetwork`,`stamp`,`active`) values (?,?,?,?,?,?,?,?,?,?)", [
entry,
"./b/"+tmpdest+"."+cb.infos.ext,
@ -41,7 +41,7 @@ module.exports = (bot, trigger, lib) => {
}
else {
fs.unlink("./b/"+tmpdest+"."+cb.infos.ext); // delete repost
e.reply("repost motherf0cker");
e.reply("repost motherf0cker: https://f0ck.me/"+cbcrcs);
}
});
});

View File

@ -48,7 +48,7 @@ module.exports = (bot, trigger, lib) => {
lib.getUser(e, (cbgu) => {
lib.getCheckSum("./b/"+tmpdest+".webm", (cbcs) => {
lib.checkRepostCheckSum(cbcs, (cbcrcs) => {
if(cbcrcs) {
if(cbcrcs === true) {
lib.sql.query("insert into `f0ck`.`items` (`src`,`dest`,`mime`,`size`,`checksum`,`username`,`userchannel`,`usernetwork`,`stamp`,`active`) values (?,?,?,?,?,?,?,?,?,?)", [
entry,
"./b/"+tmpdest+".webm",
@ -69,7 +69,7 @@ module.exports = (bot, trigger, lib) => {
}
else {
fs.unlink("./b/"+tmpdest+".webm"); // delete repost
e.reply("repost motherf0cker");
e.reply("repost motherf0cker: https://f0ck.me/"+cbcrcs);
}
});
});