Skip to content

Commit 62a5b76

Browse files
committed
Add user_id check in loading tokens of main script
1 parent 44ce120 commit 62a5b76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

twitchio/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ async def setup_hook(self) -> None:
150150
tokens = json.load(fp)
151151
152152
for user_id in tokens:
153+
if user_id == self.user.id:
154+
continue
155+
153156
subs.extend(self.generate_subs(user_id))
154157
155158
if subs:

0 commit comments

Comments
 (0)