19-10-2022, Saat: 18:25
Kod:
const Discord = require('discord.js');
const axios = require('axios');
exports.run = async (client, message, args) => {
axios({
method: 'get',
url: "https://some-random-api.ml/meme"
}).then(async image => {
const attachment = new Discord.AttachmentBuilder(image.data.image)
return message.channel.send({files: [attachment]}).catch(err => {})
})
}
exports.conf = {
aliases: []
}
exports.help = {
name: "memes"
}