Please enter the commit message for your changes.
This commit is contained in:
parent
1f109203c3
commit
33f32920ee
1
main.go
1
main.go
|
@ -127,7 +127,6 @@ func MessageHandler(Conn *xmpp.Conn, Msg *xmpp.ClientMessage) {
|
||||||
}
|
}
|
||||||
case f("^\\!", &Msg.Body): //any external command
|
case f("^\\!", &Msg.Body): //any external command
|
||||||
Strip(&Msg.Body, &Msg.From)
|
Strip(&Msg.Body, &Msg.From)
|
||||||
log.Println(GetCommand(Msg.Body, Msg.From, "./plugins/"))
|
|
||||||
cmd := exec.Command("bash", "-c", GetCommand(Msg.Body, Msg.From, "./plugins/"))
|
cmd := exec.Command("bash", "-c", GetCommand(Msg.Body, Msg.From, "./plugins/"))
|
||||||
stdout, _ := cmd.StdoutPipe()
|
stdout, _ := cmd.StdoutPipe()
|
||||||
stderr, _ := cmd.StderrPipe()
|
stderr, _ := cmd.StderrPipe()
|
||||||
|
|
Loading…
Reference in New Issue