Adding and Restructuring Commands and Classes #8

Merged
voidf1sh merged 6 commits from dev into main 2023-08-08 20:38:30 +00:00
Showing only changes of commit c562c06925 - Show all commits

View File

@ -422,7 +422,7 @@ const functions = {
});
},
async gif(gifData, client) {
const query = `INSERT INTO gifs (name, embed_url) VALUES (${db.escape(gifData.name)}, ${db.escape(gifData.url)}) ON DUPLICATE KEY UPDATE embed_url=${db.escape(gifData.embed_url)}`;
const query = `INSERT INTO gifs (name, embed_url) VALUES (${db.escape(gifData.name)}, ${db.escape(gifData.url)}) ON DUPLICATE KEY UPDATE embed_url=${db.escape(gifData.url)}`;
await db.query(query, (err, rows, fields) => {
if (err) throw err;
functions.download.gifs(client);