39 |
options: args.filter(a => a[0] === '-'), |
options: args.filter(a => a[0] === '-'), |
40 |
isInteraction: false |
isInteraction: false |
41 |
} as CommandOptions; |
} as CommandOptions; |
|
|
|
|
if (!await client.cooldown.start(message, options)) |
|
|
return; |
|
42 |
|
|
43 |
await command.execute(client, message, options); |
await command.execute(client, message, options); |
44 |
} |
} |
64 |
files: snippet.files.map(name => { |
files: snippet.files.map(name => { |
65 |
return { |
return { |
66 |
name, |
name, |
67 |
attachment: path.resolve(__dirname, '../../../storage', name) |
attachment: path.resolve(process.env.SUDO_PREFIX ?? path.join(__dirname, '../../..'), 'storage', name) |
68 |
} as FileOptions |
} as FileOptions |
69 |
}), |
}), |
70 |
embeds: snippet.embeds |
embeds: snippet.embeds |
80 |
|
|
81 |
await client.afkEngine.start(message); |
await client.afkEngine.start(message); |
82 |
} |
} |
|
} |
|
83 |
|
} |