-thumbs in db
This commit is contained in:
parent
e149d6e620
commit
415c6e9b44
|
@ -65,7 +65,7 @@ bot.on('message', (e) => {
|
||||||
getCheckSum("./b/"+tmpdest+"."+cb.infos.ext, (cbcs) => {
|
getCheckSum("./b/"+tmpdest+"."+cb.infos.ext, (cbcs) => {
|
||||||
checkRepostCheckSum(cbcs, (cbcrcs) => {
|
checkRepostCheckSum(cbcs, (cbcrcs) => {
|
||||||
if(cbcrcs) {
|
if(cbcrcs) {
|
||||||
sql.query("insert into `f0ck`.`items` (`src`,`dest`,`mime`,`size`,`checksum`,`username`,`userchannel`,`usernetwork`,`stamp`,`thumb`,`active`) values (?,?,?,?,?,?,?,?,?,?,?)", [
|
sql.query("insert into `f0ck`.`items` (`src`,`dest`,`mime`,`size`,`checksum`,`username`,`userchannel`,`usernetwork`,`stamp`,`active`) values (?,?,?,?,?,?,?,?,?,?)", [
|
||||||
entry,
|
entry,
|
||||||
"./b/"+tmpdest+"."+cb.infos.ext,
|
"./b/"+tmpdest+"."+cb.infos.ext,
|
||||||
cb.infos.mime,
|
cb.infos.mime,
|
||||||
|
@ -75,7 +75,6 @@ bot.on('message', (e) => {
|
||||||
e.channel.getName(),
|
e.channel.getName(),
|
||||||
e.network,
|
e.network,
|
||||||
Math.floor(new Date() / 1000),
|
Math.floor(new Date() / 1000),
|
||||||
'',
|
|
||||||
0
|
0
|
||||||
]).on('result', (result) => {
|
]).on('result', (result) => {
|
||||||
generateThumbs();
|
generateThumbs();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user