Compare commits
No commits in common. "424d5ab02aea10cc1b13bf61e84b57a21db2c291" and "eecb6020eaca9ef189a02cca7d01a84d27270240" have entirely different histories.
424d5ab02a
...
eecb6020ea
3 changed files with 13 additions and 11 deletions
|
@ -36,8 +36,7 @@ export default {
|
|||
await interaction.editReply({ content: '❌ Uh oh! The video is too big!', ephemeral: true });
|
||||
}
|
||||
else {
|
||||
// CopyFile instead of rename in case you have /tmp and the asset folder on different a disk.
|
||||
fs.copyFileSync(output, `./asset/ytp/userVid/${file}`);
|
||||
fs.renameSync(output, `./asset/ytp/userVid/${file}`);
|
||||
const mp4 = [];
|
||||
fs.readdirSync('./asset/ytp/userVid/').forEach(f => {
|
||||
if (f.endsWith('mp4')) {
|
||||
|
|
11
index.js
11
index.js
|
@ -17,11 +17,12 @@ const client = new Client({
|
|||
|
||||
// Load commands
|
||||
client.commands = new Collection();
|
||||
|
||||
const categoryPath = fs.readdirSync(`${__dirname}/commands`);
|
||||
categoryPath.forEach(category => {
|
||||
loadCommandFromDir(category);
|
||||
});
|
||||
await loadCommandFromDir('fun');
|
||||
await loadCommandFromDir('secret');
|
||||
await loadCommandFromDir('utility');
|
||||
await loadCommandFromDir('voice');
|
||||
await loadCommandFromDir('admin');
|
||||
await loadCommandFromDir('owner');
|
||||
|
||||
// Load events
|
||||
await loadEventFromDir('client', client);
|
||||
|
|
|
@ -11,10 +11,12 @@ const __filename = fileURLToPath(import.meta.url);
|
|||
const __dirname = path.dirname(__filename);
|
||||
|
||||
const commands = [];
|
||||
const categoryPath = fs.readdirSync(`${__dirname}/../commands`);
|
||||
categoryPath.forEach(category => {
|
||||
loadCommandFromDir(category);
|
||||
});
|
||||
await loadCommandFromDir('fun');
|
||||
await loadCommandFromDir('secret');
|
||||
await loadCommandFromDir('utility');
|
||||
await loadCommandFromDir('voice');
|
||||
await loadCommandFromDir('admin');
|
||||
await loadCommandFromDir('owner');
|
||||
commands.map(command => command.toJSON());
|
||||
|
||||
const rest = new REST({ version: '9' }).setToken(token);
|
||||
|
|
Loading…
Reference in a new issue