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