Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.04 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.04 KB

LeaderboardBot for Telegram

Leaderboard Bot cover

A leaderboard bot built for Flutter Kerala Telegram group's weekly challenge using Teledart Telegram API Wrapper written in Dart 💙

Commands

Command Action
/panineerThaliAane Kind of like Hello World but with an elephant and rose water

Wanna Host Yourself? Ugh! Okay

  1. Clone the bot locally
  git clone https://github.com/FlutterKerala/LeaderBoardBot.git
  1. Navigate to bin/ and open constants.dart in your editor of choice
  class Constants {
    static String botKey = 'YOUR API KEY HERE'; // Bot token is moved to env variable [BOTTOKEN]
    static List<int> sudoUsers = ['Put your telegram user id'];
  }
  1. In terminal run
  dart bin/main.dart
  1. And it begins

Leaderboard is created by parsing CSV & make sure you upload csv file with name as week[weeknumber].csv

Geometry for the leaderboard design

Geometry