set cwd
parent
ab30afd7bc
commit
df58a9c4fe
|
@ -21,7 +21,7 @@ export default class Exec extends Command {
|
||||||
const response = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Executing \`${args.join(' ')}\`***`);
|
const response = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Executing \`${args.join(' ')}\`***`);
|
||||||
let result: string;
|
let result: string;
|
||||||
try {
|
try {
|
||||||
result = await this.client.util.exec(args.join(' '));
|
result = await this.client.util.exec(args.join(' '), { cwd: '/var/CloudServices' });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
result = error.message;
|
result = error.message;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue