send discord webhook

This commit is contained in:
Roy Lee 2022-11-17 09:02:34 -08:00
parent 274ad9733e
commit 69c0ac6a7d
3 changed files with 4 additions and 0 deletions

View file

@ -211,6 +211,8 @@ void coind_init(YAAMP_COIND *coind)
debuglog(">>>>>>>>>>>>>>>>>>>> using wallet %s %s\n",
coind->wallet, coind->account);
}
lbrylog("coind init %s %s %s\n", coind->symbol, coind->wallet, coind->account);
}
///////////////////////////////////////////////////////////////////////////////

View file

@ -189,6 +189,7 @@ void lbrylog(const char *format, ...)
char message[YAAMP_SMALLBUFSIZE+1024];
sprintf(message, "{\"username\":\"stratum\", \"content\":\"%s: %s\"}", buffer2, buffer);
discordlog(messages);
}
void discordlog(const char *message)

View file

@ -66,6 +66,7 @@ void stratumlogdate(const char *format, ...);
void clientlog(YAAMP_CLIENT *client, const char *format, ...);
void rejectlog(const char *format, ...);
void lbrylog(const char *format, ...);
void discordlog(const char *message);
//////////////////////////////////////////////////////////////////////////