Skip to content

Commit

Permalink
fix: racoon and capybara images command
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Oct 4, 2024
1 parent ea1d086 commit b827846
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/commands/fun/animal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,19 @@ export default commandModule({
"sub_id": i.user.id,
"value": -1
})
i.editReply({content: "Has votado negativamente al gato con ID " + "`" + request[0].id + "`"})
i.editReply({content: `Has votado negativamente al gato con ID \`${request[0].id}\``})
}
})
collector.on('end', async (i) => {
await message.edit({components: [rowdisabled]})
})
}
case 'capybara': {
const request = await axios('https://api.capybara-api.xyz/v1/image/random').then(res => res.data)
const requestfacts = await axios('https://api.capybara-api.xyz/v1/facts/random').then(res => res.data)
const embed = new EmbedBuilder()
.setAuthor({name: ctx.user.username, iconURL: ctx.user.displayAvatarURL()})
.setTitle('Capybara')
.setDescription(`Fun fact: ${requestfacts.fact}`)
.setColor('Random')
.setImage(request.image_urls.medium)
.setFooter({text: `ID: ${request.id}`})
.setImage('https://api.capy.lol/v1/capybara');
await ctx.interaction.reply({embeds: [embed]})
}
case 'zorro': {
Expand Down Expand Up @@ -173,7 +169,7 @@ export default commandModule({
})
}
case 'mapache': {
const request = await axios('https://some-random-api.ml/animal/raccoon').then(res => res.data)
const request = await axios('https://some-random-api.com/animal/raccoon').then(res => res.data)
const embed = new EmbedBuilder()
.setAuthor({name: ctx.user.username, iconURL: ctx.user.displayAvatarURL()})
.setTitle('Mapache')
Expand Down

0 comments on commit b827846

Please sign in to comment.