Skip to content

Commit 66d43f0

Browse files
committed
Update wording in startup logs
1 parent fdeaff7 commit 66d43f0

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

bot.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,16 @@ async def get_pre(bot, message):
163163
return [bot.prefix, f'<@{bot.user.id}> ', f'<@!{bot.user.id}> ']
164164

165165
async def on_connect(self):
166-
print(line + Fore.RED + Style.BRIGHT)
166+
print(line)
167+
print(Fore.CYAN, end='')
167168
if not self.selfhosted:
168-
print('Mode: using api.modmail.tk')
169+
print('MODE: Using the Modmail API')
170+
print(line)
169171
await self.validate_api_token()
170172
print(line)
171173
else:
172-
print('Mode: selfhosting logs.')
174+
print('Mode: Selfhosting logs.')
175+
print(line)
173176
print(Fore.CYAN + 'Connected to gateway.')
174177
await self.config.refresh()
175178
status = self.config.get('status')
@@ -364,12 +367,16 @@ async def validate_api_token(self):
364367
try:
365368
self.config.modmail_api_token
366369
except KeyError:
370+
print(Fore.RED + Style.BRIGHT, end='')
367371
print('MODMAIL_API_TOKEN not found.')
368372
print('Set a config variable called MODMAIL_API_TOKEN with a token from https://dashboard.modmail.tk')
373+
print('If you want to selfhost logs, input a MONGO_URI config variable.')
374+
print('A modmail api token is not needed if you are selfhosting logs.')
369375
valid = False
370376
else:
371377
valid = await self.modmail_api.validate_token()
372378
if not valid:
379+
print(Fore.RED + Style.BRIGHT, end='')
373380
print('Invalid MODMAIL_API_TOKEN - get one from https://dashboard.modmail.tk')
374381
finally:
375382
if not valid:

0 commit comments

Comments
 (0)