The Push Faucet Bot is a Telegram bot designed to distribute $PUSH test tokens for the Goerli testnet. This bot allows users to experience the power of Push Protocol by providing them with test tokens, which they can use on the Goerli testnet.
Before using the Push Faucet Bot, ensure you have the following prerequisites:
- Node.js and npm installed on your system.
- A Telegram Bot Token obtained by creating a bot on Telegram with the BotFather.
- A private key (in the
.env
file) for an Ethereum account. - An Ethereum RPC URL for the Goerli testnet.
- The address of the Push token contract on the Goerli testnet.
- The amount of $PUSH tokens to distribute.
- Clone the repository to your local machine:
git clone https://github.com/Shivam-mishra2/push-faucet-bot.git cd push-faucet-bot
- Install the required npm packages:
npm install
- Create a .env file in the project's root directory and add the necessary environment variables:
PRIVATE_KEY="Your Ethereum Private Key" ETH_RPC_GOERLI="Your Ethereum RPC URL for the Goerli testnet" BOT_TOKEN="Your Telegram Bot Token" PUSH_TOKEN_CONTRACT_ADDRESS="Address of the Push Token Contract on Goerli" FAUCET_AMOUNT="Amount of $PUSH to Distribute"
The Push Faucet Bot is designed to distribute $PUSH test tokens for the Goerli testnet. Users can interact with the bot to receive these test tokens. Below are the available commands and their usage:
The /start command initiates a conversation with the bot. It provides users with an overview of the bot's functionality and how to get started.
The /receivetokens command prompts users to provide their Goerli testnet address. The bot will then send the specified amount of $PUSH tokens to the provided address. Users will also receive a transaction link to check the status of the transaction on Goerli Etherscan.
The /help command displays a message explaining the available commands and how to use the bot.
The /about command provides information about the Push Faucet Bot and its purpose. It explains how users can receive $PUSH test tokens and use them on the Goerli testnet.
The /community command encourages users to join the Push Protocol community. It provides links to the community's Telegram group, Discord server, website, and Twitter account.
The interaction flow of the Push Faucet Bot is as follows:
- A user initiates a conversation with the bot using the /start command.
- The bot provides an overview of its functionality and instructions on how to receive $PUSH test tokens.
- Users can request tokens using the /receivetokens command by providing their Goerli testnet address.
- The bot sends the specified amount of $PUSH tokens to the provided address.
- Users receive a transaction link to check the status of the transaction on Goerli Etherscan.
The bot uses an Ethereum wallet and the Push token contract to send $PUSH tokens. The token distribution logic involves creating and sending a transaction to the Push token contract's transfer function. This function transfers the specified amount of $PUSH tokens to the provided Goerli testnet address.
To deploy the Push Faucet Bot, host it on a server or cloud platform of your choice (e.g., Heroku, AWS, DigitalOcean). Ensure that the environment variables are correctly set on your hosting environment.
This README provides users with comprehensive information on how to set up, use, and interact with the Push Faucet Bot.