mirror of
https://gitlab.com/prokop_paruzek/botik.git
synced 2026-03-22 01:13:23 +01:00
fortune withnout PATH
This commit is contained in:
@@ -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", "cs").Output()
|
msg, _ := exec.Command("/usr/games/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":
|
||||||
|
|||||||
Reference in New Issue
Block a user