Better document breaking ToS will lead to bans

Closes #4102.
This commit is contained in:
Lonami Exo
2023-05-04 19:05:07 +02:00
parent 2889bd5bf3
commit c4a41adae5
3 changed files with 28 additions and 3 deletions

View File

@@ -238,13 +238,14 @@ class AuthMethods:
me = await self.sign_in(phone=phone, password=password)
# We won't reach here if any step failed (exit by exception)
signed, name = 'Signed in successfully as', utils.get_display_name(me)
signed, name = 'Signed in successfully as ', utils.get_display_name(me)
tos = '; remember to not break the ToS or you will risk an account ban!'
try:
print(signed, name)
print(signed, name, tos, sep='')
except UnicodeEncodeError:
# Some terminals don't support certain characters
print(signed, name.encode('utf-8', errors='ignore')
.decode('ascii', errors='ignore'))
.decode('ascii', errors='ignore'), tos, sep='')
return self