mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2024-12-30 11:16:46 -05:00
the magic of repl
This commit is contained in:
parent
8a1bc2137b
commit
dad83d5001
@ -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."]}
|
@ -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");``
|
||||
|
Loading…
Reference in New Issue
Block a user