MCPcopy Create free account
hub / github.com/bettercap/scripts / sendWeixinMessage

Function sendWeixinMessage

security_monitor/messaging.js:25–36  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

23
24// credits to @jiyilide https://github.com/bettercap/scripts/pull/1
25function sendWeixinMessage(message) {
26 log(message);
27
28 var url = 'https://sctapi.ftqq.com/' + weixinToken +
29 '.send?' + 'title=bettercap' +
30 '&desp=' + http.Encode(message);
31
32 var resp = http.Get(url, {});
33 if( resp.Error ) {
34 log("error while running sending weixin message: " + resp.Error.Error());
35 }
36}

Callers 1

sendMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected