mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2025-01-03 05:06:23 -05:00
asdfghjk
This commit is contained in:
parent
abb41e182e
commit
9239d10a6f
@ -144,12 +144,12 @@ client.on("message", async message => {
|
||||
if(command === "quote") {
|
||||
let quotes = require(`${homedir}/quotes.json`);
|
||||
var quoteadd = "";
|
||||
let selector = args[0].toLowerCase()
|
||||
try{
|
||||
let selector = args[0].toLowerCase();
|
||||
if(selector === "add") {
|
||||
args.shift();
|
||||
quoteadd = args
|
||||
quotes.quotes.push(quoteadd);
|
||||
quoteadd = args;
|
||||
quotes.quotes.push(stringify(quotes));
|
||||
fs.writeFile(`${homedir}/quotes.json`, JSON.stringify(quotes), (err) => {
|
||||
if (err) return message.reply("Something went wrong");
|
||||
client.channels.cache.get('712084662033580064').send(`${message.member} has submitted ${quoteadd} to the quote repository`);
|
||||
|
Loading…
Reference in New Issue
Block a user