Skip to content

Commit

Permalink
Update eval.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjamesdev authored Oct 27, 2022
1 parent dc996e3 commit 9162c4a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/commands/developers/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ module.exports = {
} catch (err) {
evaled = false;

const { body } = await post("https://bin.tritan.gg/documents").send(err.toString());
const { body } = await post("https://bin.tritan.dev/").send(err.toString());
const embed = new MessageEmbed()
.setAuthor({
name: `${message.client.config.embeds.authorName}`,
iconURL: `${message.client.config.embeds.authorIcon}`
})
.addField("Input:", `\`\`\`js\n${code}\`\`\``)
.addField("Error:", `\`\`\`js\n${err.toString()}\`\`\``)
.addField("URL:", `https://bin.tritan.gg/${body.key}.js`)
.addField("URL:", `https://bin.tritan.dev/${body.key}.js`)
.setColor(message.client.config.embeds.embed_color)
.setFooter(`Requested by ${message.author.username}`, message.author.displayAvatarURL());
msg.edit({ content: null, embeds: [embed] });
Expand All @@ -53,27 +53,27 @@ module.exports = {
output = inspect(output, { depth: 0, maxArrayLength: null });
output = clean(output);
if (output.length < 1000) {
const { body } = await post("https://bin.tritan.gg/documents").send(output);
const { body } = await post("https://bin.tritan.dev").send(output);
const embed = new MessageEmbed()
.setAuthor({
name: `${message.client.config.embeds.authorName}`,
iconURL: `${message.client.config.embeds.authorIcon}`
})
.addField("Input:", `\`\`\`js\n${code}\`\`\``)
.addField("Output:", `\`\`\`js\n${output}\`\`\``)
.addField("URL:", `https://bin.tritan.gg/${body.key}.js`)
.addField("URL:", `https://bin.tritan.dev/${body.key}.js`)
.setColor(message.client.config.embeds.embed_color)
.setFooter(`Requested by ${message.author.username}`, message.author.displayAvatarURL());
msg.edit({ content: null, embeds: [embed] });
} else {
const { body } = await post("https://bin.tritan.gg/documents").send(output);
const { body } = await post("https://bin.tritan.dev").send(output);
const embed = new MessageEmbed()
.setAuthor({
name: `${message.client.config.embeds.authorName}`,
iconURL: `${message.client.config.embeds.authorIcon}`
})
.setTitle("Output was too long, uploaded to hastebin!")
.setURL(`https://bin.tritan.gg/${body.key}.js`)
.setURL(`https://bin.tritan.dev/${body.key}.js`)
.setColor(message.client.config.embeds.embed_color)
.setTimestamp()
.setFooter(`Requested by ${message.author.username}`, message.author.displayAvatarURL());
Expand Down

0 comments on commit 9162c4a

Please sign in to comment.