mirror of https://github.com/zulip/zulip.git
tools/screenshots: Create integration bots using display_name.
Will be adding the updated screenshots of affected integrations as soon as the PR with the new logos and example screenshots gets merged.
This commit is contained in:
parent
3fe77b67ee
commit
01b80125f4
|
@ -61,7 +61,7 @@ def create_integration_bot(integration: Integration, bot_name: str | None = None
|
||||||
owner = get_user_by_delivery_email("iago@zulip.com", realm)
|
owner = get_user_by_delivery_email("iago@zulip.com", realm)
|
||||||
bot_email = f"{integration.name}-bot@example.com"
|
bot_email = f"{integration.name}-bot@example.com"
|
||||||
if bot_name is None:
|
if bot_name is None:
|
||||||
bot_name = f"{integration.name.capitalize()} Bot"
|
bot_name = f"{integration.display_name} Bot"
|
||||||
try:
|
try:
|
||||||
bot = UserProfile.objects.get(email=bot_email)
|
bot = UserProfile.objects.get(email=bot_email)
|
||||||
except UserProfile.DoesNotExist:
|
except UserProfile.DoesNotExist:
|
||||||
|
|
Loading…
Reference in New Issue