mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43: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
|
@ -30,7 +30,8 @@ const SEARCH_CARD_TYPES = {
|
||||||
ENTITY: 4,
|
ENTITY: 4,
|
||||||
CALCULATOR: 5,
|
CALCULATOR: 5,
|
||||||
UNIT_CONVERTER: 6,
|
UNIT_CONVERTER: 6,
|
||||||
DICTIONARY: 7
|
DICTIONARY: 7,
|
||||||
|
FUNBOX_COIN_FLIP: 10,
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: create a favicon() util
|
// TODO: create a favicon() util
|
||||||
|
@ -132,6 +133,15 @@ function createSearchResultPage(context, result, doodle){
|
||||||
footer: renderFooter(context, doodle)
|
footer: renderFooter(context, doodle)
|
||||||
})
|
})
|
||||||
break;
|
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:
|
default:
|
||||||
res = createEmbed("error", context, "Unknown GoogleResult Type: " + result.type)
|
res = createEmbed("error", context, "Unknown GoogleResult Type: " + result.type)
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -31,7 +31,8 @@ const SEARCH_CARD_TYPES = {
|
||||||
ENTITY: 4,
|
ENTITY: 4,
|
||||||
CALCULATOR: 5,
|
CALCULATOR: 5,
|
||||||
UNIT_CONVERTER: 6,
|
UNIT_CONVERTER: 6,
|
||||||
DICTIONARY: 7
|
DICTIONARY: 7,
|
||||||
|
FUNBOX_COIN_FLIP: 10,
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: create a favicon() util
|
// TODO: create a favicon() util
|
||||||
|
@ -132,6 +133,15 @@ function createSearchResultPage(context, result, doodle){
|
||||||
footer: renderFooter(context, doodle)
|
footer: renderFooter(context, doodle)
|
||||||
})
|
})
|
||||||
break;
|
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:
|
default:
|
||||||
res = createEmbed("error", context, "Unknown GoogleResult Type: " + result.type)
|
res = createEmbed("error", context, "Unknown GoogleResult Type: " + result.type)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue