mirror of
https://gitlab.com/prokop_paruzek/botik.git
synced 2026-11-03 18:28:03 +01:00
fortune withnout PATH
This commit is contained in:
1 parent
c598f81597
commit
c27acfc9cf
1 file changed
+1
-1
+1
-1
@@ -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