hjgcljcgultd

This commit is contained in:
Alex 2020-05-25 18:31:53 -05:00
parent 9239d10a6f
commit b28ed796d6

View File

@ -149,7 +149,7 @@ client.on("message", async message => {
if(selector === "add") { if(selector === "add") {
args.shift(); args.shift();
quoteadd = args; quoteadd = args;
quotes.quotes.push(stringify(quotes)); quotes.quotes.push(stringify(quoteadd));
fs.writeFile(`${homedir}/quotes.json`, JSON.stringify(quotes), (err) => { fs.writeFile(`${homedir}/quotes.json`, JSON.stringify(quotes), (err) => {
if (err) return message.reply("Something went wrong"); if (err) return message.reply("Something went wrong");
client.channels.cache.get('712084662033580064').send(`${message.member} has submitted ${quoteadd} to the quote repository`); client.channels.cache.get('712084662033580064').send(`${message.member} has submitted ${quoteadd} to the quote repository`);