Just a simple Github search on your discord server to search up github users!
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let search = context.params.event.content.split(' ').splice(1).join('%20');
let result = `https://www.github.com/${search}`;
let message = context.params.event.content;
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `is this what your were looking for?... <@!${context.params.event.author.id}>!`,
embed: {
title: `Ben2 Github Search`,
description: ``,
url: `https://www.github.com/${search}`,
color: 0xea9a59,
thumbnail: {
url: `https://cdn.discordapp.com/avatars/906849287164559361/e4e2ab5053444b4a28dfaf4129eea43f.webp?size=128`,
height: 0,
width: 0,
},
footer: {
text: `Made with 🧡 by BuuyaXD#0044`,
icon_url: `https://cdn.discordapp.com/avatars/700173927871152131/a_9ebf8f2b2a2db0fb9f3a50b9e53b89e0.webp?size=128`,
},
},
});
//BuuyaXDev