Skip to content

Commit

Permalink
Fix indentation on welcome message
Browse files Browse the repository at this point in the history
  • Loading branch information
raccube committed Aug 17, 2024
1 parent 5faac33 commit 71a53e6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/bot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import asyncio
import logging
import textwrap
from typing import Tuple, AsyncGenerator

import discord
Expand Down Expand Up @@ -116,13 +115,12 @@ async def on_member_join(self, member: discord.Member) -> None:
guild.me: discord.PermissionOverwrite(read_messages=True, send_messages=True),
},
)
await channel.send(textwrap.dedent(
await channel.send(
f"""Welcome {member.mention}!
To gain access, you must use `/join` with the password for your group.
To gain access, you must use `/join` with the password for your group.
*Don't have the password? it should have been sent with this join link to your team leader*
""",
))
*Don't have the password? it should have been sent with this join link to your team leader*""",
)
self.logger.info(f"Created welcome channel for '{name}'")

async def on_member_remove(self, member: discord.Member) -> None:
Expand Down

0 comments on commit 71a53e6

Please sign in to comment.