From dad83d50014247bf5c96311338a0d062b1def02a Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 26 May 2020 22:26:31 +0000 Subject: [PATCH] the magic of repl --- quotes.json | 7 +------ src/index.js | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/quotes.json b/quotes.json index 1478093..b8cf85a 100644 --- a/quotes.json +++ b/quotes.json @@ -1,6 +1 @@ -{ - "quotes": [ - "you can add quotes by running ?quote add Quote goes here", - "tech,is,bad,at,sneezing" - ] -} \ No newline at end of file +{"quotes":["you can add quotes by running ?quote add Quote goes here","techt parm arm zarm","<@!258325046869622785> I HATE JS."]} \ No newline at end of file diff --git a/src/index.js b/src/index.js index 7cc708b..fff1686 100755 --- a/src/index.js +++ b/src/index.js @@ -157,10 +157,6 @@ client.on("message", async message => { args.shift(); //This does logic to make it from an array to a nice string. quoteadd = args.join(' '); - //quoteadd = quoteadd.toString(); - //quoteadd = quoteadd.replace(/,/g, " "); - //quoteadd = quoteadd.replace(/ /g, ", "); - //quotes.quotes.push(quoteadd.toString()); quotes.quotes.push(quoteadd) fs.writeFile(`${homedir}/quotes.json`, JSON.stringify(quotes), (err) => { if (err) return message.reply("Something went wrong");``