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