-
Head over to https://discord.com/developers/applications/
-
Create a new application
- Give your Bot a name
- Get your bot's token and add it to your .env file (details below)
- Add bot to your server
- Authorize the bot and it will appear in your server!
-
Clone this repo
-
cp .env.example .env
and fill out the required variables, including the token from above -
Implement any custom checks you want your bot to run in the
receiverIsEligible
function insrc/goerliBot.js
- If you implement custom checks, make sure to pass in
true
when callingbot.commands.get('goerliBot').execute(message, args, 1, true);
- The bot is currently configured to send 1 goerli eth, and if the address already has 1 it will not send
-
Add discord user id's to the maintainers command if you would like to
-
Run the bot with the following commands
yarn install
yarn start > logfile.txt
yarn install
- take a look at the "Test Zone" at the bottom of
src/goerliBot.js
and write the appropriate function calls for the tests you want to run- you can bypass the actual bot here and test the underlying functions
node src/goerliBot.js
This started off as the EthStaker goerli bot, and we wanted to make it available for anyone to use. Please let us know if you have any issues or suggestions for how to make things clearer. PRs are always welcome too :)