This repo provide a script to Elpis Battle's scholarship feature.
Requires Node.js v14+ to run.
Install the dependencies and devDependencies and start the script. This script makes it easy to automatically send invites to multiple accounts so they can play your accounts.
npm i -g yarn
npm i -g typescript
yarn
You need to set up your development environment before you can do anything.
cp .env.example .env
FILE_INPUT_PATH (Your csv file path)
In there, owner
is the private key of the hero's owner(We need private key because Elpis Battle's Login API need to sign a message to be able to login into the system) and scholar
is the address of the person to whom the owner wants to send an invitation to play on his account.
owner,scholar
0x....,0x....
........
After filling in all the environment variables, run the command:
yarn start