From 8e633fbebbfaccb350b4d013dc1a71d02bfac33c Mon Sep 17 00:00:00 2001 From: prokopparuzek Date: Tue, 18 Mar 2025 20:51:09 +0100 Subject: [PATCH] uprava Libera --- irc_bot.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/irc_bot.go b/irc_bot.go index 22a1cd3..3da683d 100644 --- a/irc_bot.go +++ b/irc_bot.go @@ -17,11 +17,11 @@ import ( ) const ( - host string = "h21.fun:6697" + host string = "irc.eu.libera.chat:6697" help string = ` botík obecný https://git.h21.fun/h21/botik.git -Je v kanálu #test i v DM +Je v kanálu #h21 i v DM Zdraví nově příchozí. Příkazy: !help - Zobraz nápovědu @@ -63,10 +63,9 @@ func main() { } defer conn.Close() reader := bufio.NewReader(conn) - fmt.Fprintln(conn, "PASS horal") - fmt.Fprintln(conn, "USER bot rpi3 rpi3 :botik obecny") - fmt.Fprintln(conn, "NICK botik") - fmt.Fprintln(conn, "JOIN #test") + fmt.Fprintln(conn, "USER h21-botik botik h21 :botik obecny") + fmt.Fprintln(conn, "NICK h21-botik") + fmt.Fprintln(conn, "JOIN #h21") // joke init api := jokeapi.New() api.SetLang("en")