Skip to content

hamidb80/YaldaaaCodeBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yaldaaa Code Bot

Introduction

Yaldaaa Code is a programming challenge that is held in the Yaldā times by Computer Engineering Science Club of Shahed University.

Project Structure

  • src/
    • database.nim: database models and queries
    • dialogs.nim: message texts and dialogs
    • main.nim: app entry
    • problem.nim: problem generator
    • tg.nim: extra telegram utilities
    • markdownv2.nim: telegram's markdownv2 functionalities
    • utils.nim: extra utilities
    • peoms_list.nim: lists poems in database to play.html
    • poem_getter.nim: downloads poems from Ganjoor API and save it in database
  • tests/
    • tdb.nim: test for database
    • tproblem.nim: test for problem generator
  • Dockerfile: docker container config
  • fandogh.sample.yml: config file for Fandogh Service
  • yaldaaacode.nimble: nimble project file

Commands

see yaldaaacode.nimble.

tests

nimble test

build binary

nimble gen

debug [local test]

nimble debug