1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 00:10: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 327adc31bc
commit e55dba0b65

View File

@ -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;