Support Future Tone Twitter/Image uploads

pull/5/head
sigonasr2 5 years ago
parent 183fde69be
commit da8576d287
  1. 3
      frontend/src/App.js
  2. 2
      imgparser/projectDivaImgParser
  3. 10
      server/app.js
  4. BIN
      server/files/releases/DivaBot05C.zip
  5. BIN
      server/files/releases/DivaBot05C1.zip

@ -1800,7 +1800,8 @@ function ReleaseList(p) {
function DivaBot() {
const releases=[
["05B","http://projectdivar.com/files/releases/DivaBot05B.zip","22 Sep 2020",<> <Badge variant="info" pill>Recommended</Badge> <i>Improved song select recognition speed.</i></>],
["05C","http://projectdivar.com/files/releases/DivaBot05C1.zip","23 Sep 2020",<> <Badge variant="info" pill>Recommended</Badge> <i>Fixed bug with Finder not being submitted, and fix 1000+ note counts for FT submissions.</i></>],
["05B","http://projectdivar.com/files/releases/DivaBot05B.zip","22 Sep 2020",<> <IMAGE_BUG/> <i>Improved song select recognition speed.</i></>],
["05A","http://projectdivar.com/files/releases/DivaBot05A.zip","21 Sep 2020",<> <i>Added multi-monitor support. Use calibration to switch monitors.</i></>],
["05","http://projectdivar.com/files/releases/DivaBot05.zip","21 Sep 2020",<> <i>Added Miku FC. Huge optimizations to result screen capture, improve menu detection algorithms.</i></>],
["04B","http://projectdivar.com/files/releases/DivaBot04A2.zip","20 Sep 2020",<> <i>Redo the calibrator and improve Future Tone recognition.</i></>],

@ -1 +1 @@
Subproject commit d89ba6438979c27a846d33f4adf763b30fdc715e
Subproject commit 3c10a63ac967128e56c333106fbc4e5edea21dcf

@ -1011,7 +1011,7 @@ var MAX_INDEX = 12 //To prevent being rate-limited.
function Process(data,ind){
for (var i in data.data.statuses) {
var tweet = data.data.statuses[i]
if (tweet.source && tweet.source.includes("Nintendo Switch Share")) {
if (tweet.source && tweet.source.includes("Nintendo Switch Share")||tweet.source.includes("PlayStation®Network")) {
if (tweet.extended_entities) {
//console.log(tweet.extended_entities.media)
for (var j=0;j<tweet.extended_entities.media.length;j++) {
@ -1050,9 +1050,9 @@ axios.get('https://api.twitter.com/1.1/search/tweets.json?q=@divarbot', {
return Process(data);
})
.then((data)=>{process_images.forEach((image)=>{console.log(image)})})*/
/*setInterval(
setInterval(
()=>{
twitchStreams.get('radi7002')
twitchStreams.get('smallant')
.then(function(streams) {
//console.log(streams)
if (streams.length>0) {
@ -1062,7 +1062,7 @@ axios.get('https://api.twitter.com/1.1/search/tweets.json?q=@divarbot', {
.catch((err)=>{
console.log(err.message)
})
},5000)*/
},5000)
setInterval(
()=>{
@ -1073,7 +1073,7 @@ setInterval(
uploadData.tries+=1;
}
if (uploadData.tries<5) {
console.log("Failed to upload. Added back to queue. Tries: "+uploadData.tries+" / "+json.stringify(uploadData))
console.log("Failed to upload. Added back to queue. Tries: "+uploadData.tries+" / "+JSON.stringify(uploadData))
db.query("insert into uploadedplays(filename,userid,submissiondate,id,playid,tries) values($1,$2,$3,$4,$5,$6);",
[uploadData.filename,uploadData.userid,uploadData.submissiondate,uploadData.id,uploadData.playid,uploadData.tries])
}

Loading…
Cancel
Save