Manage providers registered on the Oasis.ai API with ease using Oasis Bot!
Oasis Bot is a powerful script designed to manage providers on the Oasis.ai API. With this bot, you can:
- Read tokens from the
tokens.txt
file. - Retrieve a list of available providers.
- Automatically delete providers based on their ID.
This script is built using Node.js and leverages Axios as the HTTP request library.
Follow these steps to install and run the script:
- Create a new folder to store the script files.
- Navigate to the project folder in your terminal:
cd [your-project-folder]
- Inside your project folder, create a new file named
delete.js
. - Copy the
delete.js
script provided in this repository into your file.
- Initialize a new Node.js project:
npm init -y
- Install the required libraries (Axios, fs, path, chalk):
npm install fs path axios chalk
If tokens.txt
is missing or empty, generate a new token by running:
npm run setup
- Execute the script using Node.js:
node delete.js
- The script will read the token from
tokens.txt
, fetch the provider list, and delete providers automatically.
- Valid Token Required: Ensure your API token is active and valid for Oasis.ai.
- Modify If Necessary: Adjust API URLs or parameters as needed if Oasis.ai updates its endpoints.
Want to add new features or report issues? Feel free to create a pull request or open an issue in the repository.
Happy coding! 🚀