From 113527092e0c6fb958a86027cf382f105def8eec Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Tue, 24 Sep 2024 23:25:49 +0200 Subject: [PATCH] Moving README into main file --- README.md | 8 -------- run.sh | 5 ++++- tiger-bot.tig | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 9 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index c521aa5..0000000 --- a/README.md +++ /dev/null @@ -1,8 +0,0 @@ - -Weird attempt at writing an IRC bot in Tiger. Actually mostly worked, -by wrapping the call in a specifically designed script to handle SSL -and the connection. The Tiger implementation only needed to respond to -messages on input, by writing to output. - -Design started on 6. Marts 2019. - diff --git a/run.sh b/run.sh index 0660a0f..a21c409 100644 --- a/run.sh +++ b/run.sh @@ -1,9 +1,12 @@ +#!/bin/bash +set -e LOG_SERVER_TO_CLIENT=./log_s2c.log LOG_CLIENT_TO_SERVER=./log_c2s.log +TARGET_SERVER="irc.example.org" CLIENT_RUNTIME="./tiger-bot.bin" -COMMS_RUNTIME="openssl s_client -connect irc.guava.space:6697" +COMMS_RUNTIME="openssl s_client -connect $TARGET_SERVER:6697" # Ensure logs are new rm -f "$LOG_CLIENT_TO_SERVER" diff --git a/tiger-bot.tig b/tiger-bot.tig index 7a93653..46d46fc 100644 --- a/tiger-bot.tig +++ b/tiger-bot.tig @@ -1,3 +1,19 @@ +/* +# Tiger-bot + +Attempt at writing an IRC bot in Tiger. Actually mostly worked, +by wrapping the call in a specifically designed script to handle SSL +and the connection. The Tiger implementation only needed to respond to +messages on input, by writing to output. + +Design started on 6. Marts 2019. + +## Usage + +Run using `run.sh`. + +Requires `openssl` utility. +*/ let /* Parsing util */