diff --git a/DiscordBot.py b/DiscordBot.py index 1fc87ee..16fbed2 100644 --- a/DiscordBot.py +++ b/DiscordBot.py @@ -139,10 +139,11 @@ async def upload(ctx,file: discord.Attachment | None = None): await ctx.respond("Tried to upload 0 files") else: for i in files: + logger.info(f"Uploading filename: {i}") uploadfile(i) await messagechannel.send(f"{os.path.splitext(i)[0]}\nhttps://torfiles.fieryeagle.org/{urlencode(i)}") os.remove(i) - await ctx.respond(f"Sucessfully uploaded {files}") + await ctx.followup.send(f"Sucessfully uploaded {files}") @bot.slash_command() async def manual_upload(ctx, file_url: str):