implement coin flip funbox

This commit is contained in:
bignutty 2024-08-01 17:29:42 +02:00
parent c91be25dae
commit 0f2ac4f8a9
2 changed files with 22 additions and 2 deletions

View file

@ -31,7 +31,8 @@ const SEARCH_CARD_TYPES = {
ENTITY: 4,
CALCULATOR: 5,
UNIT_CONVERTER: 6,
DICTIONARY: 7
DICTIONARY: 7,
FUNBOX_COIN_FLIP: 10,
}
// TODO: create a favicon() util
@ -132,6 +133,15 @@ function createSearchResultPage(context, result, doodle){
footer: renderFooter(context, doodle)
})
break;
case SEARCH_CARD_TYPES.FUNBOX_COIN_FLIP:
res = createEmbed("default", context, {
description: `### Flip a coin\n**${result.result}**!`,
thumbnail: {
url: result.sprite
},
footer: renderFooter(context, doodle)
})
break;
default:
res = createEmbed("error", context, "Unknown GoogleResult Type: " + result.type)
break;