aboutsummaryrefslogtreecommitdiff
path: root/robot/leitner-run.sh
blob: 270d7435d5375497aaa6a1980ef6021f8d7bab91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash

set -e

function run_drill {
    ## Org-drill should be running at this point, so give three answers
    ## with a score of file
    sleep_big

    echo answer one
    send_answer

    echo answer two
    send_answer

    echo answer three
    send_answer
}

this_dir="$(dirname "$0")"
source $this_dir/robot.sh

##small_sleep=3

launch_emacs $this_dir/leitner-run.el

{
    find_bot

    ## Run once with default options
    run_drill

    wait_emacs
} || cat robot/failure.txt