Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrihamelin committed Jul 5, 2024
2 parents c663574 + 1a5b7a0 commit 98d7f95
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,19 @@ npm i sodium

```bash

const FFmpeg = require('/Users/dimitrihamelin/github/Bot-Discord/node_modules/prism-media/src/core/FFmpeg.js'); // Adjust the path accordingly

let eventFiles = readdirSync('/Users/dimitrihamelin/github/Bot-Discord/fr/config.json').filter(file => file.endsWith('.js'));

let event = require(`/Users/dimitrihamelin/github/Bot-Discord/fr/config.json/${file}`);
const FFmpeg = require('/Users/dimitrihamelin/github/Bot-Discord/node_modules/prism-media/src/core/FFmpeg.js'); // Adjust the path accordingly //here

client.login(Token).then(console.log("Support FR qui marche")).catch((err) => {console.log("Problème FR")}) //here
let eventFiles = readdirSync('fr/croxydb/').filter(file => file.endsWith('.js')); //here

for (let file of eventFiles) {
let event = require(`fr/croxydb/${file}`); //here
if (event.once) {
client.once(event.name, (...args) => event.execute(...args));
} else {
client.on(event.name, (...args) => event.execute(...args));
}
```
Warning : Replace also the path and "your token" in the main page & config.
Expand Down

0 comments on commit 98d7f95

Please sign in to comment.