This is a Discord bot that dispenses Rinkeby ETH.
Features:
- Full control over the wallet
- Customisable funding amount (0.1 ETH by default)
- No concurrent requests to prevent failed transactions due to nonce issues
- Customisable per user cooldowns (1 hour by default)
- Balance check and donation alert
- Yarn
- Node.js > 16.6.0
-
Register an application and get a token from here
-
Rename the
scheme.config.json
file toconfig.json
-
Add the bot token, Alchemy URL, wallet keys, and the guild/client IDs to the
config.json
file Note: The client ID is the application ID of the bot. You can get this from the application page or by right-clicking the bot and selecting "Copy ID". The guild ID is the ID of the server you want the bot to be in. You can get this by right-clicking the server and selecting "Copy ID". -
Install with
yarn install
- Run
node deploy-commands.js
to register your slash commands. Note: Deploy is at guild level by default. You can change this by updating thedeploy-commands.js
file.
- Start the bot with
node .
- Use
/faucet <address>
to request funds.
You can change the following:
- Cooldown time: Update the
cooldown
value in theconfig.json
file with a value in milliseconds. Defaults to3600000
(1 hour). - Amount: Update the
amount
value in theconfig.json
file with a string. Defaults to0.1
ETH.