mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Update path for console logs
This commit is contained in:
parent
2fc1b7c6dd
commit
357bc87e37
@ -107,7 +107,7 @@ export default {
|
|||||||
},
|
},
|
||||||
logs: ()=>{
|
logs: ()=>{
|
||||||
interaction.deferReply();
|
interaction.deferReply();
|
||||||
(client.channels.resolve(client.config.mainServer.channels.console) as Discord.TextChannel).send({content: `Uploaded the current console dump as of <t:${Math.round(Date.now()/1000)}:R>`, files: [`${process.env.pm2_home}/logs/Daggerbot-out-0.log`, `${process.env.pm2_home}/logs/Daggerbot-error-0.log`]}).then(()=>interaction.editReply('It has been uploaded to dev server.')).catch((e:Error)=>interaction.editReply(`\`${e.message}\``))
|
(client.channels.resolve(client.config.mainServer.channels.console) as Discord.TextChannel).send({content: `Uploaded the current console dump as of <t:${Math.round(Date.now()/1000)}:R>`, files: [`${process.env.pm2_home}/logs/Daggerbot-out.log`, `${process.env.pm2_home}/logs/Daggerbot-error.log`]}).then(()=>interaction.editReply('It has been uploaded to dev server.')).catch((e:Error)=>interaction.editReply(`\`${e.message}\``))
|
||||||
},
|
},
|
||||||
restart: async()=>{
|
restart: async()=>{
|
||||||
const i = await interaction.reply({content: 'Compiling TypeScript files...', fetchReply: true});
|
const i = await interaction.reply({content: 'Compiling TypeScript files...', fetchReply: true});
|
||||||
|
Loading…
Reference in New Issue
Block a user