We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeda15e commit f97b76dCopy full SHA for f97b76d
bot.py
@@ -353,7 +353,9 @@ async def validate_api_token(self):
353
if not valid:
354
await self.logout()
355
else:
356
- print(Style.RESET_ALL + Fore.CYAN + 'Validated API token.' + Style.RESET_ALL)
+ 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)
359
360
async def data_loop(self):
361
await self.wait_until_ready()
core/thread.py
@@ -139,7 +139,6 @@ async def populate_cache(self):
139
continue
140
await self.find(channel=channel)
141
142
-
143
def __len__(self):
144
return len(self.cache)
145
0 commit comments