Skip to content

Commit 6ffe403

Browse files
committed
chore(bot): apply suggestions
1 parent 9970295 commit 6ffe403

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/utils/twitch/checkIfStreamerIsLive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export async function checkIfStreamersAreLive(): Promise<void> {
129129
for (const guild of guildsTrackingStreamer.data) {
130130
// Send a message to the channel
131131
const channel = await client.channels.fetch(
132-
guild.guildId,
132+
guild.notificationChannelId,
133133
);
134134

135135
await (channel as TextChannel).send(

src/utils/youtube/fetchLatestUploads.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export default async function fetchLatestUploads() {
153153
new Date(),
154154
);
155155

156-
if (!updateSuccess) {
156+
if (!updateSuccess.success) {
157157
console.error(
158158
"Error updating video ID in fetchLatestUploads",
159159
);
@@ -177,17 +177,17 @@ export default async function fetchLatestUploads() {
177177

178178
const channelInfo = await getChannelDetails(channelId);
179179

180-
console.log(
181-
discordGuildsToUpdate.data.filter(
180+
console.info(`Filtered guilds for channel ID ${channelId}:`, {
181+
count: discordGuildsToUpdate.data.filter(
182182
(
183183
guild,
184184
): guild is typeof dbGuildYouTubeSubscriptionsTable.$inferSelect =>
185185
"youtubeChannelId" in guild &&
186186
"trackVideos" in guild &&
187187
"trackShorts" in guild &&
188188
"trackStreams" in guild,
189-
),
190-
);
189+
).length,
190+
});
191191

192192
updates.set(videoId, {
193193
channelInfo,

0 commit comments

Comments
 (0)