Skip to content

Commit b058ef2

Browse files
committed
Changed the way the bot checks for new streams
1 parent 271656b commit b058ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def CheckLiveStreams(self):
114114
self.newCacheLiveStreams = self.JSONtoSet(self.GetJSON(), 'live')
115115
for newStream in self.newCacheLiveStreams:
116116
for oldStream in self.cacheLiveStreams:
117-
if newStream['title'] == oldStream['title']:
117+
if newStream['url'] == oldStream['url']:
118118
break
119119
else:
120120
self.Send(self.channel, '"' + newStream['title'] + '" just went live!, check it out here: ' + newStream['url'])

0 commit comments

Comments
 (0)