An example grpcoin bot written in Python for demonstration purposes.
Before running the bot, make sure you have a GitHub account.
Then, create a GitHub personal access token that does not have any permissions!
Set your GitHub token to TOKEN
environment variable.
export TOKEN=...
Note that it is strongly recommended to create a virtualenv
before installing
requirements not to affect global Python modules. You can refer
here
to set a virtual environment.
Execute the following pip command on a shell to install dependencies:
pip install -r requirements.txt
Generate Python codes for proto files:
python -m grpc_tools.protoc -I ./protos --python_out=. --grpc_python_out=. ./protos/grpcoin.proto
Run the following command to start the bot:
python main.py