uprava Libera

This commit is contained in:
2025-03-18 20:51:09 +01:00
parent 67967ee7ae
commit 8e633fbebb

View File

@@ -17,11 +17,11 @@ import (
) )
const ( const (
host string = "h21.fun:6697" host string = "irc.eu.libera.chat:6697"
help string = ` help string = `
botík obecný botík obecný
https://git.h21.fun/h21/botik.git 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í. Zdraví nově příchozí.
Příkazy: Příkazy:
!help - Zobraz nápovědu !help - Zobraz nápovědu
@@ -63,10 +63,9 @@ func main() {
} }
defer conn.Close() defer conn.Close()
reader := bufio.NewReader(conn) reader := bufio.NewReader(conn)
fmt.Fprintln(conn, "PASS horal") fmt.Fprintln(conn, "USER h21-botik botik h21 :botik obecny")
fmt.Fprintln(conn, "USER bot rpi3 rpi3 :botik obecny") fmt.Fprintln(conn, "NICK h21-botik")
fmt.Fprintln(conn, "NICK botik") fmt.Fprintln(conn, "JOIN #h21")
fmt.Fprintln(conn, "JOIN #test")
// joke init // joke init
api := jokeapi.New() api := jokeapi.New()
api.SetLang("en") api.SetLang("en")