mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 20:30:58 -05:00
Add more debug points to YTModule
This commit is contained in:
parent
759572c1b8
commit
9224c6c95d
@ -30,7 +30,8 @@ export default async(client:TClient)=>{
|
|||||||
}).then(async resp=>Data = await resp.body.json());
|
}).then(async resp=>Data = await resp.body.json());
|
||||||
YTChannelName = Data.items[0].snippet.channelTitle;
|
YTChannelName = Data.items[0].snippet.channelTitle;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
Logger.console('log', 'YTModule', `Failed to get video data for "${YTChannelID}" from YouTube API: ${err}`);
|
Logger.console('error', 'YTModule', `Failed to get video data for "${YTChannelID}" from YouTube API: ${err}`);
|
||||||
|
Logger.debug('YTModule', `Debug data: ${Data}`);
|
||||||
}
|
}
|
||||||
if (!Data) return;
|
if (!Data) return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user