Code Monkey home page Code Monkey logo

nyan-heroes-bot's Introduction

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:

  1. Open your browser and go to the Nyan Heroes website.
  2. Log in to your account.
  3. Open the developer tools (F12 or right-click and select "Inspect").
  4. Navigate to the "Network" tab.
  5. Refresh the page.
  6. Look for any requests to the Nyan Heroes API. They usually start with "api.nyanheroes.com".
  7. Click on the request and navigate to the "Headers" section.
  8. Look for the "Authorization" header.
  9. Copy the token after the word "Bearer".

Installation

  1. Clone the repository:
git clone https://github.com/dante4rt/nyan-heroes-bot.git
  1. Install dependencies:
cd nyan-heroes-bot
npm install

Usage

To start the bot, run:

npm start

Follow the prompts to choose an option:

  1. Get Tasks and Clear
  2. Get Profile

nyan-heroes-bot's People

Contributors

dante4rt avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.