more log
This commit is contained in:
parent
9ca2e84847
commit
b4450bffe3
1 changed files with 4 additions and 2 deletions
6
index.js
6
index.js
|
|
@ -77,7 +77,7 @@ const loop = async () => {
|
||||||
if (stateChange) {
|
if (stateChange) {
|
||||||
if (isLive) {
|
if (isLive) {
|
||||||
console.info('Went live!')
|
console.info('Went live!')
|
||||||
await post({
|
const postResult = await post({
|
||||||
spoiler_text: 'Stream announcment',
|
spoiler_text: 'Stream announcment',
|
||||||
status: [
|
status: [
|
||||||
'hj just went live on peertube',
|
'hj just went live on peertube',
|
||||||
|
|
@ -86,11 +86,13 @@ const loop = async () => {
|
||||||
].join('\n'),
|
].join('\n'),
|
||||||
visibility: 'public',
|
visibility: 'public',
|
||||||
});
|
});
|
||||||
|
console.info(postResult)
|
||||||
|
|
||||||
await scrobble({
|
const scrobbleResult = await scrobble({
|
||||||
title: 'Streaming on PeerTube',
|
title: 'Streaming on PeerTube',
|
||||||
external_link: `https://tube.ebin.club/w/${videoId}`,
|
external_link: `https://tube.ebin.club/w/${videoId}`,
|
||||||
});
|
});
|
||||||
|
console.info(scrobbleResult)
|
||||||
} else {
|
} else {
|
||||||
console.info('Went offline...')
|
console.info('Went offline...')
|
||||||
await scrobble({
|
await scrobble({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue