mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
finish new design for the remaining commands
This commit is contained in:
parent
37a6c40d30
commit
e89c0e9aad
6 changed files with 15 additions and 7 deletions
0
commands/message/search/maps.js
Normal file
0
commands/message/search/maps.js
Normal file
|
@ -136,8 +136,8 @@ module.exports = {
|
|||
if(search.status == 2) return editOrReply(context, {embeds:[createEmbed("error", context, search.message)]})
|
||||
|
||||
let pages = []
|
||||
// Create the initial page
|
||||
|
||||
// Create the initial page
|
||||
for(const answer of search.answers){
|
||||
pages.push(createQuoraAnswerPage(context, search.question, answer))
|
||||
}
|
||||
|
|
|
@ -11,7 +11,11 @@ function createReverseImageSearchResultPage(context, result, source){
|
|||
let res = {
|
||||
"embeds": [
|
||||
createEmbed("default", context, {
|
||||
description: `**${link(result.url, result.name)}**`,
|
||||
author: {
|
||||
iconUrl: `https://www.google.com/s2/favicons?domain=${encodeURIComponent(result.url)}&sz=256`,
|
||||
name: result.name,
|
||||
url: result.url
|
||||
},
|
||||
image: {
|
||||
url: result.image
|
||||
},
|
||||
|
|
|
@ -8,7 +8,11 @@ const { wikihow } = require('../../../labscore/api');
|
|||
|
||||
function createWikiHowPage(context, result){
|
||||
let e = createEmbed("default", context, {
|
||||
description: `**${link(result.link, result.title)}**\n\n${result.snippet}`,
|
||||
author: {
|
||||
name: result.title,
|
||||
url: result.link
|
||||
},
|
||||
description: result.snippet,
|
||||
footer: {
|
||||
iconUrl: STATICS.wikihow,
|
||||
text: `WikiHow • ${context.application.name}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue