This bot interacts with the Nyan Heroes API to perform various tasks such as getting tasks, clearing tasks, and fetching user profiles.
- Get Tasks and Clear: Fetches tasks from the Nyan Heroes API and clears them.
- Get Profile: Retrieves the user profile information from the Nyan Heroes API.
Before running the bot, make sure you have:
- Node.js installed on your machine
- API token from Nyan Heroes. Create a
.env
file in the root directory of the project and add your API token as follows:
TOKEN=your_api_token_here
To obtain the API token, follow these steps:
- Open your browser and go to the Nyan Heroes website.
- Log in to your account.
- Open the developer tools (F12 or right-click and select "Inspect").
- Navigate to the "Network" tab.
- Refresh the page.
- Look for any requests to the Nyan Heroes API. They usually start with "api.nyanheroes.com".
- Click on the request and navigate to the "Headers" section.
- Look for the "Authorization" header.
- Copy the token after the word "Bearer".
- Clone the repository:
git clone https://github.com/dante4rt/nyan-heroes-bot.git
- Install dependencies:
cd nyan-heroes-bot
npm install
To start the bot, run:
npm start
Follow the prompts to choose an option:
- Get Tasks and Clear
- Get Profile