From a5f2cdebb9edd71f9c03db6360be9abeda3bf0ee Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Thu, 29 Dec 2022 09:03:57 +1100 Subject: [PATCH] Update botlog.ts --- src/commands/botlog.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/botlog.ts b/src/commands/botlog.ts index c95afb5..7c56dc1 100644 --- a/src/commands/botlog.ts +++ b/src/commands/botlog.ts @@ -3,11 +3,11 @@ import { TClient } from 'src/client'; export default { async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){ if (!client.config.eval.whitelist.includes(interaction.user.id)) return client.youNeedRole(interaction, 'bottech'); - (client.channels.resolve(client.config.mainServer.channels.console) as Discord.TextChannel).send({content: `Uploaded the current console dump as of `, files: ['../.pm2/logs/Daggerbot-out.log']}) + (client.channels.resolve(client.config.mainServer.channels.console) as Discord.TextChannel).send({content: `Uploaded the current console dump as of `, files: ['../../.pm2/logs/Daggerbot-out.log']}) await interaction.reply('It has been uploaded to dev server.') }, data: new SlashCommandBuilder() .setName('botlog') .setDescription('Retrieves the log from host and sends it to development server.') .setDMPermission(false) -} \ No newline at end of file +}