major cleanup

This commit is contained in:
derpystuff 2023-11-04 17:29:06 +01:00
parent ddd918470e
commit a8cf49e31e
60 changed files with 537 additions and 619 deletions

View file

@ -21,15 +21,15 @@ module.exports = {
run: async (context, args) => {
let image = await getRecentImage(context, 50)
if(!image) return editOrReply(context, createEmbed("warning", context, "No images found."))
if (!image) return editOrReply(context, createEmbed("warning", context, "No images found."))
let response = await editOrReply(context, createEmbed("loading", context, `Generating image...`))
await editOrReply(context, createEmbed("loading", context, `Generating image...`))
if(!args.text) args.text = ""
if (!args.text) args.text = ""
try {
const timings = Date.now();
let mkswt = await billboardCityscape(image)
return await editOrReply(context, {
embeds: [createEmbed("image", context, {
url: "makesweet.gif",
@ -43,7 +43,7 @@ module.exports = {
})
} catch (e) {
console.log(e)
await editOrReply(context, { embeds: [createEmbed("error", context, "Something went wrong.")] })
await editOrReply(context, createEmbed("error", context, "Something went wrong."))
}
},
}