Introduction
Introduction Statistics Contact Development Disclaimer Help
github-haha - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
github-haha (601B)
---
1 #!/bin/sh
2 #
3 # TODO: Add more funny github projects.
4 #
5
6 projectselection="newsboat/newsboat"
7 if [ $# -lt 1 ];
8 then
9 if [ "$1" = "-h" ];
10 then
11 printf "usage: %s [-h] githubuser/githubproject\n" >&2
12 exit 1
13 fi
14
15 githubproject="$(printf "%s\n" "${projectselection}" | shuf -n 1…
16 else
17 githubproject="$1"
18 fi
19
20 wuri="$(hurl -H 'User-Agent:' \
21 "https://api.github.com/repos/${githubproject}/issues?per_page=1…
22 | json2tsv \
23 | awk -F '\t' '$1 == "[].title" { print "HAHA: " $3; }' \
24 | /br/bin/bitreich-speak)"
25 [ $? -gt 0 ] && exit 1
26
27 printf "%s ( %s )\n" "${githubproject}" "${wuri}"
28
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.