Modify TwitchGameNotificationEmbed tag field to 5 tags and remove inline

This commit is contained in:
Funky Waddle 2025-06-23 09:03:54 -05:00
parent 7181bd134a
commit 82c7508517

View file

@ -21,7 +21,7 @@ class TwitchGameNotificationEmbed(Embed):
self.add_field(name="Game", value=f"{stream_data["game_name"]}", inline=True)
self.add_field(name="Viewers", value=f"{stream_data["viewer_count"]}", inline=True)
tags = stream_data["tags"]
if len(tags) > 3:
tags = tags[:3]
if len(tags) > 5:
tags = tags[:5]
tags.append('...')
self.add_field(name="Tags", value=f"{", ".join(tags)}")
self.add_field(name="Tags", value=f"{", ".join(tags)}", inline=False)