nyan-heroes-bot
v1.0.0
Published
This bot interacts with the Nyan Heroes API to perform various tasks such as getting tasks, clearing tasks, and fetching user profiles.
Downloads
3
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
.env
file in the root directory of the project and add your API token as follows:
TOKEN=your_api_token_here
Obtaining 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 install
Usage
To start the bot, run:
npm start
Follow the prompts to choose an option:
- Get Tasks and Clear
- Get Profile