mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 18:35:22 +00:00
19 lines
No EOL
466 B
JavaScript
19 lines
No EOL
466 B
JavaScript
const Discord = require('discord.js');
|
|
const fetch = require("node-fetch");
|
|
|
|
module.exports = async (client, interaction, args) => {
|
|
|
|
fetch(
|
|
`https://some-random-api.com/img/fox`
|
|
)
|
|
.then((res) => res.json()).catch({})
|
|
.then(async (json) => {
|
|
client.embed({
|
|
title: `🦊・Random Fox`,
|
|
image: json.link,
|
|
type: 'editreply'
|
|
}, interaction)
|
|
}).catch({})
|
|
}
|
|
|
|
|