This tool automates claiming from the Mitosis Testnet faucet, with scheduled tasks for retries and Telegram notifications for updates and error logging.
- Automatically claims tokens from the Mitosis Testnet faucet.
- Schedules retries for claims: once every 24 hours or upon specific errors.
- Sends claim status updates and error messages directly to a specified Telegram chat.
- Clone the repository to your local machine.
- Navigate to the project directory.
- Install the required npm packages with
npm install
. - Set the environment variable
TELEGRAM_BOT_TOKEN
with your Telegram bot token.
Run the script using node index.js
and follow the prompts. Ensure you have set your environment variables correctly for the Telegram integration to work.
- Uses
sendTelegram.js
to send notifications to a Telegram chat. - Requires a Telegram bot token set as an environment variable
TELEGRAM_BOT_TOKEN
. - Automatically notifies you of claim successes and errors.
- axios: Promise-based HTTP client for making requests to the faucet.
- colors: Used for adding color to console logs for better readability.
- cron: Used for scheduling claim retries.
- dotenv: Used to load environment variables from
.env
for the Telegram bot.
Contributions are welcome. Please fork the repository, push your changes to a new branch, and submit a pull request.