fixed text

This commit is contained in:
Fadi Atamny 2020-05-03 16:25:52 +03:00
parent b105ee300b
commit e1869b95d0

View File

@ -174,7 +174,7 @@ class WelcomeCog(commands.Cog):
message = WelcomeCog.formatMessage(self.message)
await member.send(content=None, embed=message)
if self.channel in member.guild.channels and self.toggleLogs:
await self.channel.send('>>> {0} - has joined the server'.format(member.mention))
await self.channel.send('>>> {0} has joined the server'.format(member.mention))
self.totalJoinedCount += 1
self.dailyJoinedCount += 1
self.totalLogs += 1
@ -186,7 +186,7 @@ class WelcomeCog(commands.Cog):
async def on_member_remove(self, member: discord.Member) -> None:
try:
if self.channel in member.guild.channels and self.toggleLogs:
await self.channel.send('>>> {0} - has left the server'.format(member.mention))
await self.channel.send('>>> {0} has left the server'.format(member.mention))
self.totalLeftCount += 1
self.dailyLeftCount += 1
self.totalLogs += 1
@ -198,7 +198,7 @@ class WelcomeCog(commands.Cog):
async def on_member_ban(self, guild: discord.Guild, member: discord.Member) -> None:
try:
if self.channel in member.guild.channels and self.toggleLogs:
await self.channel.send('>>> {0} - has been banned from the server'.format(member.mention))
await self.channel.send('>>> {0} has been banned from the server'.format(member.mention))
self.totalLogs += 1
except (discord.NotFound, discord.Forbidden):
print(
@ -208,7 +208,7 @@ class WelcomeCog(commands.Cog):
async def on_member_ban(self, guild: discord.Guild, member: discord.Member) -> None:
try:
if self.channel in member.guild.channels and self.toggleLogs:
await self.channel.send('>>> {0} - has been unbanned from the server'.format(member.mention))
await self.channel.send('>>> {0} has been unbanned from the server'.format(member.mention))
self.totalLogs += 1
except (discord.NotFound, discord.Forbidden):
print(