1
0
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:
toast-ts 2024-04-26 15:18:53 +10:00
parent 759572c1b8
commit 9224c6c95d

View File

@ -30,7 +30,8 @@ export default async(client:TClient)=>{
}).then(async resp=>Data = await resp.body.json());
YTChannelName = Data.items[0].snippet.channelTitle;
} 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;