Skip to content

Commit

Permalink
Fixing main.py for wrong style
Browse files Browse the repository at this point in the history
  • Loading branch information
Hornochs committed Jan 23, 2025
1 parent 9fb08e2 commit 41cb7cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discordgsm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async def send_alert(server: Server, alert: Alert):
content = None if not content else content
username = 'Game Server Monitor Alert'
avatar_url = 'https://avatars.githubusercontent.com/u/61296017'

async with aiohttp.ClientSession() as session:
webhook = Webhook.from_url(webhook_url, session=session)
await webhook.send(content, username=username, avatar_url=avatar_url, embed=alert_embed(server, alert))
Expand Down Expand Up @@ -265,7 +265,7 @@ def query_server_modal(game: GamedigGame, locale: Locale):
modal.add_item(query_extra['voice_port'])
elif game['id'] == 'tmnf':
query_extra['username'] = TextInput(label='Username', placeholder='Query Username', default="User")
query_extra['password'] = TextInput(label='Password', placeholder='Query Password', default="User", style=TextStyle.short)
query_extra['password'] = TextInput(label='Password', placeholder='Query Password', default="User")
modal.add_item(query_extra['username'])
modal.add_item(query_extra['password'])

Expand Down

0 comments on commit 41cb7cb

Please sign in to comment.