From d8f9061adf2d255bbe7b2b27f0fa892ef881c305 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Apr 2016 02:11:53 +0300 Subject: add .gitlab-ci.yml and script for it. --- tools/ci/scripts/bot.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 tools/ci/scripts/bot.sh (limited to 'tools/ci/scripts/bot.sh') diff --git a/tools/ci/scripts/bot.sh b/tools/ci/scripts/bot.sh new file mode 100755 index 000000000..4724530a8 --- /dev/null +++ b/tools/ci/scripts/bot.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +export path=bot +export server=irc.freenode.net +export C="\0003" +export R="\x0f" + +function bot_connect { + mkdir ${path} + ii -s $server -i $path -n $1 -f $1 & + sleep 7s +} + +function bot_join { + echo "/j $1" > "$path/$server/in" + sleep 7s +} + +function bot_message { + echo -e $2 >bot/irc.freenode.net/${1}/in + sleep 1s +} + +function bot_exit { + sleep 5s + killall ii +} -- cgit v1.2.3-70-g09d2