Skip to content

grpcoin/example-grpcoin-bot-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Grpcoin Python Bot

An example grpcoin bot written in Python for demonstration purposes.

How to run

Setting access token

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=...

Installing dependencies

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

Running bot

Run the following command to start the bot:

python main.py

About

An example grpcoin bot written in Python for demonstration purposes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages