Skip to content

ZennDev1337/Karma-Bot-Telegram-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karma-Bot by ZennCode [ Telegram Bot ]

The Karma-Bot is programmed in GO and runs with an SQlite 3 database

Install

You need to install Go on your server to compile the binary

run the following command.

go build .

Config

First rename the following two files:

example_foo.db to foo.db

example_config.json to config.json

You have now a config.json file in the main directory that looks like:

{
	"Token":"YOUR_TELEGRAM_TOKEN"	
}

Put your "YOUR_TELEGRAM_TOKEN" there.

If you don't know about Telegram Tokens, visit the official Telegram dokumentation:

Usage

How to start the bot

On Windows:

./tgbot.exe {No Param here}
or double-click the tgbot.exe

On Linux:

./tgbot {No Param here}

First step

After adding the bot to your group chat, you need to register that chat to the database.

To do so, write the following command in the chat:

/add

Commands

To upvote a post, reply to it with the command:

++

To downvote a post, reply to it with the command:

--

To view the leaderboard use the command:

/leaderboard 
or 
/lb

To check if the bot is running use the command:

/status

To list all commands in Telegram use the command:

/help

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages