WIP
This commit is contained in:
parent
99ca610a7e
commit
22af32adc2
@ -9,6 +9,10 @@
|
||||
}));
|
||||
}
|
||||
|
||||
// $.inidb.get('streamInfo', 'lastSub', subscriber);
|
||||
// $.inidb.get('streamInfo', 'lastFollow', follower);
|
||||
// $.inidb.get('streamInfo', 'lastDonator', donationUsername);
|
||||
|
||||
$.bind('command', function(event) {
|
||||
|
||||
const sender = "" + event.getSender().toLowerCase(),
|
||||
@ -43,5 +47,17 @@
|
||||
$.registerChatSubcommand('overlay', 'timer', 2);
|
||||
});
|
||||
|
||||
$(document).ready(async ()=>{
|
||||
if(socket){
|
||||
while(socket.getReadyState() === 0){
|
||||
await new Promise(r => setTimeout(r, 500));
|
||||
}
|
||||
socket.getDBValue("get_current_stream_info", 'streamInfo', 'lastSub', function(response) {
|
||||
console.log(response);
|
||||
|
||||
if(response.request_data) console.log(response.request_data)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
})();
|
Loading…
x
Reference in New Issue
Block a user