summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-20 04:36:05 -0500
committerJune McEnroe <june@causal.agency>2020-02-20 04:36:05 -0500
commit733a5ea2e8c0fe8565ef1dfee47fcf014f45675d (patch)
tree7ccbe20b4fd7d1fb71cd28e5c8338ead16461db7 /home
parentAdd The Obelisk Gate (diff)
downloadsrc-733a5ea2e8c0fe8565ef1dfee47fcf014f45675d.tar.gz
src-733a5ea2e8c0fe8565ef1dfee47fcf014f45675d.zip
Remove wiki script
Wikipedia seems to have removed the one-sentence extracts from the
opensearch results. Too bad.

It's not a wiki script, what we need is a command that fetches
single-sentence summaries of articles on Wikipedia.
Diffstat (limited to '')
-rwxr-xr-xhome/.local/bin/wiki7
1 files changed, 0 insertions, 7 deletions
diff --git a/home/.local/bin/wiki b/home/.local/bin/wiki
deleted file mode 100755
index c4308098..00000000
--- a/home/.local/bin/wiki
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-set -eu
-
-curl -Gs 'https://en.wikipedia.org/w/api.php' \
-    -d 'action=opensearch' --data-urlencode "search=$1" \
-    | jq -r '.[2][]' \
-    | sed -En "s/^([^ ]| [^i]| i[^s]| is[^ ])* is /It's not a $1, what we need is /p"
'>2018-09-13Preview with nick in input windowJune McEnroe 2018-09-13Never send PRIVMSG to TagStatus or TagVerboseJune McEnroe 2018-09-13Move color selection to format.cJune McEnroe 2018-09-13Fix len for format->split at end of stringJune McEnroe 2018-09-13Avoid uninitialized x in uiReadJune McEnroe 2018-09-13Add IRCDefault to colors enumJune McEnroe 2018-09-13Return a format->split even at the end of the stringJune McEnroe 2018-09-13Fix weird tab-complete after commaJune McEnroe 2018-09-13Rewrite UI againJune McEnroe 2018-09-12Add note about C-oJune McEnroe 2018-09-12Use formatParse split to position input cursorJune McEnroe 2018-09-12Factor out IRC formatting parsingJune McEnroe 2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe