Search for an app using < !app > and get a link to autocode.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let search = context.params.event.content.split(' ').splice(1).join('%20');
let result = `https://autocode.com/app/?q=${search}`;
let message = context.params.event.content;
if (message.startsWith(`!app`)) {
//you can change the command
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: ``,
embed: {
title: `Click here`,
description: `Here is your search result`,
url: `https://autocode.com/app/?q=${search}`,
color: 0x00aa00,
thumbnail: {
url: `https://content.public.files.stdlib.com/shared/static/social/autocode-512.png`, //can change
height: 0,
width: 0,
},
},
});
}