First working version

This commit is contained in:
CramMK
2020-01-18 04:13:57 +01:00
parent 7e805ff13a
commit 818bafc604
14 changed files with 58 additions and 652 deletions

View File

@@ -19,7 +19,7 @@ class WelcomeCog(commands.Cog):
channel = member.guild.system_channel
text = f"Welcome {member.mention} to our useless Discord!"
if channel is Not None:
if channel is not None:
await channel.send(text)
@@ -29,8 +29,8 @@ class WelcomeCog(commands.Cog):
)
async def hello(self, ctx):
await ctx.send(f"Hello {ctx.author}!")
await ctx.send(f"Hello {ctx.author.mention}!")
# COG ENDING
def setup(bot):
bot.add_cog(WelcomeCog(bot))
bot.add_cog(WelcomeCog(bot))