mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:25:11 +00:00
[ADD] Allow the main component to be used to issue commands
This commit is contained in:
parent
fb44ad4bf6
commit
fd1b3499b6
2 changed files with 3 additions and 9 deletions
|
|
@ -69,13 +69,6 @@ ASSend(const ParseeConfig *conf, char *id, char *user, char *type, HashMap *c, u
|
|||
|
||||
reply = JsonDecode(HttpClientStream(ctx));
|
||||
ret = StrDuplicate(JsonValueAsString(HashMapGet(reply, "event_id")));
|
||||
if (!ret)
|
||||
{
|
||||
Log(LOG_ERR, "Got %s from HTTP", HttpStatusToString(status));
|
||||
JsonEncode(reply, StreamStdout(), JSON_PRETTY);
|
||||
StreamPrintf(StreamStdout(), "\n");
|
||||
StreamFlush(StreamStdout());
|
||||
}
|
||||
JsonFree(reply);
|
||||
|
||||
HttpClientContextFree(ctx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue