Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.46 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.46 KB

Super Karma Bot

Built With:

  • The Ruby language - version 2.5.0
  • Postgres
  • Sequel
  • Telegram API

Appointment

This Super Karma Bot allows teammates to reward each other with karma points. It helps building stronger and happier teams.

Bot comes with the dashboard that helps to stay on top of your team activity and visualises the stats.

How it works:

/all stat - shows Karma statistic for each user. Users ordering by Karma count(DESC).

For increasing Karma reply for user message with ++ text.

For decreasing Karma reply for user message with -- text.

Install

git clone https://github.com/TheBlackArroVV/super_karma_bot
cp .env.example .env
bundle install
rake db:migrate
bundle exec ruby main.rb

After install

  1. Before start using that bot, you have to register your own here.

  2. Disable Privacy mode in BotFather settings for your own bot.

  3. Enable Groups in BotFather settings for your own bot.

  4. After BotFather give you token insert this token into .ENV => TELEGRAM_TOKEN.

  5. Fill .ENV => DATABASE_URL as defined here using settings for Postgres.

  6. Add your bot to chosen Telegram Group.

Note that it takes some time for enabling Bot on Telegram Servers(about 4 hours).