{"_id":"@calmlet/nyan-heroes-bot","name":"@calmlet/nyan-heroes-bot","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.1":{"name":"@calmlet/nyan-heroes-bot","version":"1.1.1","description":"This bot interacts with the Nyan Heroes API to perform various tasks such as getting tasks, clearing tasks, and fetching user profiles.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","start":"node index.js"},"keywords":[],"author":"","license":"ISC","dependencies":{"axios":"^1.6.8","colors":"^1.4.0","dotenv":"^16.4.5","nyan-heroes-bot":"^1.0.0","readline-sync":"^1.4.10"},"repository":{"type":"git","url":"git+https://github.com/abangdwie/nyan-heroes-bot-calm.git"},"bugs":{"url":"https://github.com/abangdwie/nyan-heroes-bot-calm/issues"},"homepage":"https://github.com/abangdwie/nyan-heroes-bot-calm#readme","devDependencies":{},"_id":"@calmlet/nyan-heroes-bot@1.1.1","gitHead":"4de043ae5a751355d5dcae13883cdafbda1cce5f","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-PRzR6ZLqRkubPOYwz5D3xuvdxr3mCu24T9XUVjz+zSVrTy9xwDn9N+yMQ5a411XnjtXV6vVCFjaG4l1oBOShow==","shasum":"7fb046aa57db0d2b9e206c5412d6202ca28f8b83","tarball":"https://registry.npmjs.org/@calmlet/nyan-heroes-bot/-/nyan-heroes-bot-1.1.1.tgz","fileCount":7,"unpackedSize":5654,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICy9Gm2NyFJuQ7NoqO6CqVgaqRVfgusW/VLCq3RleVZRAiBgU1C1KvXZyqRLKaWGoktVwR8FtlQrCChGHTdDj7IgYA=="}]},"_npmUser":{"name":"calmlet","email":"abang.dwie@gmail.com"},"directories":{},"maintainers":[{"name":"calmlet","email":"abang.dwie@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nyan-heroes-bot_1.1.1_1711131802695_0.5349895988917628"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-22T18:23:22.592Z","1.1.1":"2024-03-22T18:23:22.880Z","modified":"2024-03-22T18:23:23.430Z"},"maintainers":[{"name":"calmlet","email":"abang.dwie@gmail.com"}],"description":"This bot interacts with the Nyan Heroes API to perform various tasks such as getting tasks, clearing tasks, and fetching user profiles.","homepage":"https://github.com/abangdwie/nyan-heroes-bot-calm#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/abangdwie/nyan-heroes-bot-calm.git"},"bugs":{"url":"https://github.com/abangdwie/nyan-heroes-bot-calm/issues"},"license":"ISC","readme":"# Nyan Heroes Bot\n\nThis bot interacts with the Nyan Heroes API to perform various tasks such as getting tasks, clearing tasks, and fetching user profiles.\n\n## Features\n\n- **Get Tasks and Clear**: Fetches tasks from the Nyan Heroes API and clears them.\n- **Get Profile**: Retrieves the user profile information from the Nyan Heroes API.\n\n## Prerequisites\n\nBefore running the bot, make sure you have:\n\n- Node.js installed on your machine\n- API token from Nyan Heroes. Create a `.env` file in the root directory of the project and add your API token as follows:\n\n```plaintext\nTOKEN=your_api_token_here\n```\n\n## Obtaining API Token\n\nTo obtain the API token, follow these steps:\n\n1. Open your browser and go to the Nyan Heroes website.\n2. Log in to your account.\n3. Open the developer tools (F12 or right-click and select \"Inspect\").\n4. Navigate to the \"Network\" tab.\n5. Refresh the page.\n6. Look for any requests to the Nyan Heroes API. They usually start with \"api.nyanheroes.com\".\n7. Click on the request and navigate to the \"Headers\" section.\n8. Look for the \"Authorization\" header.\n9. Copy the token after the word \"Bearer\".\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/dante4rt/nyan-heroes-bot.git\n```\n\n2. Install dependencies:\n\n```bash\ncd nyan-heroes-bot\nnpm install\n```\n\n## Usage\n\nTo start the bot, run:\n\n```bash\nnpm start\n```\n\nFollow the prompts to choose an option:\n\n1. Get Tasks and Clear\n2. Get Profile","readmeFilename":"README.md"}