import type { Message , TextChannel } from "eris" ; import type { NekosLifeImage } from "../../typings/endpoints" ; import { Command } from "../../classes/Command" ; import axios from "axios" ; export class FeethentaiCommand extends Command { description = "Sends an ecchi/hentai feet picture." ; aliases = [ "feet" ] ; cooldown = 4000 ; allowdms = true ; nsfw = true ; async run ( msg ) { const body = ( await axios . get ( "https://nekos.life/api/v2/img/feet" ) . catch ( ( ) => { } ) ) as NekosLifeImage ; if ( ! body || ! body . data ?. url ) { return msg . createEmbed ( msg . string ( "global.ERROR" ) , msg . string ( "global.RESERROR_IMAGE" ) , "error" ) ; } msg . channel . createMessage ( { embed : { title : `🔞 ${ msg . string ( "nsfw.FEET_HENTAI" ) }` , color : msg . convertHex ( "general" ) , image : { url : body . data . url , } , footer : { text : msg . string ( "global.RAN_BY" , { author : msg . tagUser ( msg . author ) , poweredBy : "nekos.life" , } ) , icon_url : msg . author . dynamicAvatarURL ( ) , } , } , } ) ; } }