mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
[nextgen/cardstack] migrate google, google images to cardstack
This commit is contained in:
parent
ba7c76ff04
commit
0433c3a785
6 changed files with 95 additions and 91 deletions
|
@ -8,6 +8,7 @@ const { acknowledge } = require('#utils/interactions');
|
|||
const { link, citation, icon, codeblock, pill, smallPill, favicon} = require('#utils/markdown')
|
||||
const { editOrReply } = require('#utils/message')
|
||||
const { STATICS } = require('#utils/statics')
|
||||
const {createDynamicCardStack} = require("#cardstack/index");
|
||||
|
||||
function renderFooter(context, doodle){
|
||||
if(doodle?.super_g) return {
|
||||
|
@ -282,10 +283,9 @@ module.exports = {
|
|||
}
|
||||
|
||||
if(!pages.length) return editOrReply(context, createEmbed("warning", context, `No results found.`))
|
||||
|
||||
await paginator.createPaginator({
|
||||
context,
|
||||
pages: formatPaginationEmbeds(pages)
|
||||
|
||||
return await createDynamicCardStack(context, {
|
||||
cards: pages
|
||||
});
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue