czech fortune

newer jokeapi
This commit is contained in:
2025-03-19 23:32:09 +01:00
parent 8e633fbebb
commit c598f81597
2 changed files with 2 additions and 2 deletions

2
go.mod
View File

@@ -2,4 +2,4 @@ module irc_bot
go 1.18 go 1.18
require github.com/icelain/jokeapi v0.0.0-20220428143244-f71f87248478 require github.com/icelain/jokeapi v0.0.0-20241225191219-cc3912b85e84

View File

@@ -96,7 +96,7 @@ func main() {
case "!pozdrav": case "!pozdrav":
sendMsg(conn, "Ahoj "+who, receiver) sendMsg(conn, "Ahoj "+who, receiver)
case "!fortune": case "!fortune":
msg, _ := exec.Command("fortune").Output() msg, _ := exec.Command("fortune", "cs").Output()
fmt.Println(string(msg)) fmt.Println(string(msg))
sendMultiline(conn, string(msg), receiver) sendMultiline(conn, string(msg), receiver)
case "!ftip": case "!ftip":