Commit a8b4148b authored by mercury233's avatar mercury233

test

parent c98cd930
...@@ -1396,6 +1396,16 @@ ygopro.stoc_follow 'DUEL_START', false, (buffer, info, client, server)-> ...@@ -1396,6 +1396,16 @@ ygopro.stoc_follow 'DUEL_START', false, (buffer, info, client, server)->
#else #else
#log.info 'DECK POST OK', response.statusCode, client.name, body #log.info 'DECK POST OK', response.statusCode, client.name, body
return return
if settings.modules.deck_log.post # temp for analytics2
request.post { url : "https://mycard.moe/ygopro/analytics2/deck/text" , form : {
accesskey: settings.modules.deck_log.accesskey,
deck: deck_text,
playername: client.name,
arena: settings.modules.arena_mode.mode
}}, (error, response, body)->
if error
log.warn 'DECK POST ERROR', error
return
client.deck_saved = true client.deck_saved = true
return return
......
...@@ -1718,6 +1718,21 @@ ...@@ -1718,6 +1718,21 @@
} }
}); });
} }
if (settings.modules.deck_log.post) {
request.post({
url: "https://mycard.moe/ygopro/analytics2/deck/text",
form: {
accesskey: settings.modules.deck_log.accesskey,
deck: deck_text,
playername: client.name,
arena: settings.modules.arena_mode.mode
}
}, function(error, response, body) {
if (error) {
log.warn('DECK POST ERROR', error);
}
});
}
client.deck_saved = true; client.deck_saved = true;
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment