Commit 8f55cef3 authored by Sigfried Seldeslachts's avatar Sigfried Seldeslachts
Browse files

Small stupid fixes

parent 1892427a
Pipeline #10651 passed with stage
in 28 seconds
......@@ -17,10 +17,14 @@ const command = async (msg) => {
let content = "";
for (const file of type) {
const command = require(path.join(__dirname, `../${dir}/${file}`));
content += prefix + command.aliases[0] + " - " + command.description + "\n";
if (command.aliases) {
content += prefix + command.aliases[0] + " - " + command.description + "\n";
}
}
fieldContent.push({name: dir, value: content});
if (command !== "") {
fieldContent.push({name: dir, value: content});
}
}
const embed = {
......
......@@ -46,7 +46,6 @@ const activation = async (msg) => {
}
module.exports = {
activation: true,
author: "Sigfried",
activation
};
\ No newline at end of file
const axios = require('axios');
const { MessageEmbed } = require('discord.js');
/**
......@@ -12,7 +13,12 @@ const command = async (msg) => {
msg.channel.send(data[0].url);
} catch (error) {
msg.channel.send("Ik kon geen afbeelding versturen.");
const embed = new MessageEmbed()
.setTitle("Ik kon geen afbeelding versturen!")
.setDescription(error)
.setColor("#FF0000");
msg.channel.send(embed);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment