mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
implement coin flip funbox
This commit is contained in:
parent
c91be25dae
commit
0f2ac4f8a9
2 changed files with 22 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue