Skip to content
This repository was archived by the owner on Nov 8, 2025. It is now read-only.

GamerXR-637/Aoi.js-Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Aoi.js Functions

The code in this repository is designed to work only with aoi.js https://github.com/aoijs/aoi.js. You are free to use the code as you wish, but if you intend to use the functions as they are, please include the following snippet in the index file or the file that all of the important part are:

const functionsPath = path.join(__dirname, 'src', 'functions');
fs.readdirSync(functionsPath).forEach(file => {
    const func = require(path.join(functionsPath, file));
    if (func.name) {
        client.functionManager.createFunction(func);
    } else {
        console.error(`Function in file ${file} does not have a name property.`);
    }
});

In this snippet, "src" should be the main folder, and "functions" refers to the folder where your function files are stored.

Please note that I cannot guarantee this code will work for everyone, as it functioned well for me. I am unable to provide further assistance, as I received help from AI and cannot offer support.

About

Aoi.js functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published