dotfiles

Settings and scripts
git clone git://git.konyahin.xyz/dotfiles
Log | Files | Refs | LICENSE

commit a36be9965325809c940f6fe66d3f59f2c56f9d1f
parent 1ab32889978e3fd31e61f71f71f9eb746165ffea
Author: Anton Konyahin <me@konyahin.xyz>
Date:   Sun, 14 May 2023 21:28:27 +0300

scripts: move irc scripts to separate project

Diffstat:
Dscripts/dot-bin/irc-channels | 7-------
Dscripts/dot-bin/irc-client | 46----------------------------------------------
Dscripts/dot-bin/irc-read-channel | 7-------
Dscripts/dot-bin/irc-start | 16----------------
4 files changed, 0 insertions(+), 76 deletions(-)

diff --git a/scripts/dot-bin/irc-channels b/scripts/dot-bin/irc-channels @@ -1,7 +0,0 @@ -#!/usr/bin/env sh - -set -euo pipefail - -DIR=~/data/irc - -find $DIR -type f -name out | fzf -d "/" -n -2 --with-nth -2 diff --git a/scripts/dot-bin/irc-client b/scripts/dot-bin/irc-client @@ -1,46 +0,0 @@ -#!/usr/bin/env sh - -set -e - -if [ -z "$1" ]; then - echo "Specify network or channel" - exit 1 -fi - -libera () { - SERVER=irc.libera.chat - PORT=6665 -} - -oftc () { - SERVER=irc.oftc.net - PORT=6667 -} - -case $1 in "libera") - libera;; -"oftc") - oftc;; -"suckless") - oftc - CHANNEL="#suckless";; -"openbsd") - libera - CHANNEL="#openbsd";; -*) - echo "Unknown network or channel: $1" - exit 1;; -esac - -PASS=$(pass irc/password) -NICK=kon4ru - -COMMAND="-s $SERVER -p $PORT -n $NICK" -if [ ! -z "$CHANNEL" ]; then - COMMAND="$COMMAND -c $CHANNEL" -fi -COMMAND="$COMMAND -x" - -kirc $COMMAND <<END -privmsg NickServ :identify $PASS -END diff --git a/scripts/dot-bin/irc-read-channel b/scripts/dot-bin/irc-read-channel @@ -1,7 +0,0 @@ -#!/usr/bin/env sh - -set -euo pipefail - -# date -f timestamp -tail -500 -f $(irc-channels) \ - | grep -v -e '-!- .* joined' -e '-!- .* left' \ diff --git a/scripts/dot-bin/irc-start b/scripts/dot-bin/irc-start @@ -1,16 +0,0 @@ -#!/usr/bin/env sh - -set -euo pipefail - -DIR=~/data/irc -USER=kon4ru -PASS=$(pass /irc/password) - -cd $DIR -ii -s irc.libera.chat -p 6665 -i $DIR -n kon4ru -k PASS & - -sleep 5 - -echo "/j nickserv IDENTIFY $USER $PASS" >> irc.libera.chat/in -echo "/j #openbsd" >> irc.libera.chat/in -echo "started"