Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1 KB

README.md

File metadata and controls

42 lines (28 loc) · 1 KB

turing-bot

A discord bot helps groups with coding practicing and note taking.

Dependency

DB Schema

user(uid, dcid, uname, fname, lname, createts)

problem(pid, pname)

user_problem(upid, uid, pid, ts, note)

Usage

!solved <pname> [-m <msg>]            Record the problem solved with the option to take notes
!show <uname> [-a]                    Show the problems solved today by given username 
                                      and show all entries when -a specified
TODO:
!count <uname> [-a]
!noteshow <uname> [-p <pname>]
!graph <uname>
!help <pname>
!today
!libraryhours

e.g. !solved LintCode18
     !solved LeetCode200 -m "This is a comment"
     !show Richard -a

Cross compiling for Linux

$ brew install FiloSottile/musl-cross/musl-cross

$ env GOOS=linux GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-linux-musl-gcc go build --ldflags '-linkmode external -extldflags "-static"' main.go