mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Make owner commands cleaner
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = class GenerateProcessEnvCommand extends Command {
|
||||
line = line.replace('=', '');
|
||||
return `${line}="${process.env[line] || ''}"`;
|
||||
}).join('\n');
|
||||
await msg.direct({ files: [{ attachment: Buffer.from(list), name: 'process.env.txt' }] });
|
||||
return msg.say('📬 Sent `process.env.txt` to your DMs!');
|
||||
if (msg.guild) await msg.say('📬 Sent `process.env.txt` to your DMs!');
|
||||
return msg.direct({ files: [{ attachment: Buffer.from(list), name: 'process.env.txt' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user