mirror of
https://gitlab.com/prokop_paruzek/botik.git
synced 2025-12-19 06:17:56 +01:00
uprava Libera
This commit is contained in:
11
irc_bot.go
11
irc_bot.go
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user