Add Meme Du Jour. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit e5029af4c5c684f5c30e50f6859b59d57956464e DIR parent 8ede2c250c8fd88b6ebd94990d90ff7ae7195a61 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sat, 10 Aug 2024 16:23:03 +0200 Add Meme Du Jour. Diffstat: A meme-du-jour | 10 ++++++++++ A random-meme | 6 ++++++ 2 files changed, 16 insertions(+), 0 deletions(-) --- DIR diff --git a/meme-du-jour b/meme-du-jour @@ -0,0 +1,10 @@ +#!/bin/bash + +export PATH="$PATH:/home/annna/bin" + +memedujourchannel="#bitreich-books" +memedujourserver="irc.bitreich.org" +memedujour="$(random-meme)" + +annna-say -s "${memedujourserver}" -c "${memedujourchannel}" "Meme Du Jour: ${memedujour}" + DIR diff --git a/random-meme b/random-meme @@ -0,0 +1,6 @@ +#!/bin/sh + +hashtagfile="/home/annna/bin/modules/hashtags/hashtags.txt" + +shuf -n 1 "${hashtagfile}" | cut -d' ' -f 2 +