@calmlet/nyan-heroes-bot
v1.1.1
Published
This bot interacts with the Nyan Heroes API to perform various tasks such as getting tasks, clearing tasks, and fetching user profiles.
Readme
Nyan Heroes Bot
This bot interacts with the Nyan Heroes API to perform various tasks such as getting tasks, clearing tasks, and fetching user profiles.
Features
- 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.
Prerequisites
Before running the bot, make sure you have:
- Node.js installed on your machine
- API token from Nyan Heroes. Create a
.envfile in the root directory of the project and add your API token as follows:
TOKEN=your_api_token_hereObtaining API Token
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".
Installation
- Clone the repository:
git clone https://github.com/dante4rt/nyan-heroes-bot.git- Install dependencies:
cd nyan-heroes-bot
npm installUsage
To start the bot, run:
npm startFollow the prompts to choose an option:
- Get Tasks and Clear
- Get Profile
