the magic of repl

This commit is contained in:
Alex 2020-05-26 22:26:31 +00:00 committed by repl.it user
parent 8a1bc2137b
commit dad83d5001
2 changed files with 1 additions and 10 deletions

View File

@ -1,6 +1 @@
{
"quotes": [
"you can add quotes by running ?quote add <person> Quote goes here",
"tech,is,bad,at,sneezing"
]
}
{"quotes":["you can add quotes by running ?quote add <person> Quote goes here","techt parm arm zarm","<@!258325046869622785> I HATE JS."]}

View File

@ -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");``