0
0
Fork 0

Actually update the used quotes DB

This commit is contained in:
Tyler-A 2020-04-20 15:56:59 -06:00
parent a4919ec462
commit b288cbb1f8

View file

@ -7,7 +7,7 @@ import {
DISCORD_OAUTH_TOKEN, DISCORD_OAUTH_TOKEN,
DISCORD_WEBHOOK_USERNAME DISCORD_WEBHOOK_USERNAME
} from "./config"; } from "./config";
import { LOAD_USED_QUOTES } from "./database"; import { LOAD_USED_QUOTES, WRITE_USED_QUOTES } from "./database";
@ -23,6 +23,7 @@ export const GET_QUOTE = async (count = 1): Promise<string> => {
quote = quotes[Math.floor(Math.random() * quotes.length)]; quote = quotes[Math.floor(Math.random() * quotes.length)];
}; };
used_quotes.push(quote); used_quotes.push(quote);
WRITE_USED_QUOTES(used_quotes);
return quote return quote
}) })