From 71a53e634fce74c0ce32857bab122848ba648125 Mon Sep 17 00:00:00 2001 From: "Karina J. Kwiatek" Date: Sat, 17 Aug 2024 19:43:53 +0200 Subject: [PATCH] Fix indentation on welcome message --- src/bot.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/bot.py b/src/bot.py index 0e6b5d5..37d00a3 100644 --- a/src/bot.py +++ b/src/bot.py @@ -1,7 +1,6 @@ import os import asyncio import logging -import textwrap from typing import Tuple, AsyncGenerator import discord @@ -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: