Socket
Book a DemoInstallSign in
Socket

github.com/PTarasyuk/kbot

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/PTarasyuk/kbot

v1.0.7
Source
Go
Version published
Created
Source

KBot

DevOps application from scratch

KBot is a Telegram bot written in the Go programming language, utilizing the Cobra-CLI v1.8.0 framework for command handling and Telebot v3.1.4 for integration with the Telegram API.

Installation

To get started with KBot, clone the repository:

git clone https://github.com/PTarasyuk/kbot.git
cd kbot

To install all necessary dependencies and compile the project, use:

go get
go build -ldflags "-X="github.com/PTarasyuk/kbot/cmd.appVersion=v1.0.2

To test the compiled project, do the following:

./kbot version

as a result, you should get the app's version v1.0.2.

Configuration

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

Running

Run KBot using the following command:

./kbot start

@ptarasyuk_bot

Usage

This project uses a Makefile for common tasks. Run the following commands:

  • Format Code: make format
  • Lint Code: make lint
  • Run Tests: make test
  • Get Dependencies: make get
  • Build Application: make build (Override REGISTRY, TARGETOS and TARGETARCH with make build REGISTRY=ptarasyuk TARGETOS=linux TARGETARCH=arm)
  • Create Docker Image: make image (Override REGISTRY, TARGETOS and TARGETARCH with make image REGISTRY=ptarasyuk TARGETOS=linux TARGETARCH=arm)
  • Push Docker Image: make push (Override REGISTRY, TARGETOS and TARGETARCH with make push REGISTRY=ptarasyuk TARGETOS=linux TARGETARCH=arm)
  • Clean: make clean

For more details and options, run make help.

FAQs

Package last updated on 21 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.