Skip to content

Commit f97b76d

Browse files
committed
Show github user in console
1 parent aeda15e commit f97b76d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ async def validate_api_token(self):
353353
if not valid:
354354
await self.logout()
355355
else:
356-
print(Style.RESET_ALL + Fore.CYAN + 'Validated API token.' + Style.RESET_ALL)
356+
username = (await self.modmail_api.get_user_info())['user']['username']
357+
print(Style.RESET_ALL + Fore.CYAN + 'Validated token.' )
358+
print(f'GitHub user: {username}' + Style.RESET_ALL)
357359

358360
async def data_loop(self):
359361
await self.wait_until_ready()

core/thread.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ async def populate_cache(self):
139139
continue
140140
await self.find(channel=channel)
141141

142-
143142
def __len__(self):
144143
return len(self.cache)
145144

0 commit comments

Comments
 (0)