To get started with KBot, clone the repository:
git clone https://github.com/AnnaKlueva/kbot.git
cd kbot
To install all necessary dependencies and compile the project, use:
go get
go build -ldflags "-X="github.com/AnnaKlueva/kbot/cmd.appVersion=v1.0.0
To test the compiled project, do the following:
./kbot version
as a result, you should get the app's version v1.0.0
.
Enter your Telegram bot token in silent mode:
read -s TELE_TOKEN
Export the value of the TELE TOKEN variable to the current shell environment.
export TELE_TOKEN
Run KBot using the following command:
./kbot start