Remove logging and unused function from TS
This commit is contained in:
parent
58307fdd4c
commit
e810e1a621
2 changed files with 4 additions and 41 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { LOAD_MSG_ID, WRITE_MSG_ID } from "./database";
|
||||
import { GET_MESSAGE, GET_QUOTE, POST_WINNING_QUOTE, POST_NEW_BRACKET } from "./api";
|
||||
import { GET_MESSAGE, GET_QUOTE, POST_NEW_BRACKET } from "./api";
|
||||
import { EMOJI_A_ID, EMOJI_B_ID, EMOJI_B_NAME, EMOJI_A_NAME } from "./config";
|
||||
import { ADD_TO_DOCS } from "./docs";
|
||||
|
||||
const MAIN = async () => {
|
||||
|
||||
|
|
@ -22,7 +23,7 @@ const MAIN = async () => {
|
|||
|
||||
|
||||
// Both quotes have had a reaction
|
||||
let winning_emoji: reaction|"TIE"|"NO_DATA";
|
||||
let winning_emoji: bracket_result;
|
||||
if (emoji_a !== undefined && emoji_b !== undefined) {
|
||||
if (emoji_a!.count === emoji_b!.count) {
|
||||
winning_emoji = "TIE";
|
||||
|
|
@ -48,7 +49,7 @@ const MAIN = async () => {
|
|||
|
||||
|
||||
// Push the winning quote to the result webhook
|
||||
await POST_WINNING_QUOTE(msg, winning_emoji);
|
||||
ADD_TO_DOCS(msg, winning_emoji);
|
||||
|
||||
|
||||
var new_quote_a: string, new_quote_b: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue