Some small improvements

This commit is contained in:
Marco Thomas
2020-10-08 10:05:58 +02:00
parent 24c416a80b
commit 4a5933729b
12 changed files with 48 additions and 71 deletions

View File

@@ -2,16 +2,14 @@
Welcoming new users etc.
"""
# IMPORTS
import discord
from discord.ext import commands
# COG INIT
class Welcome(commands.Cog):
def __init__(self, bot):
self.bot = bot
# COG BODY
@commands.Cog.listener()
async def on_member_join(self, member):
"""
@@ -30,6 +28,5 @@ class Welcome(commands.Cog):
await ctx.send(f"Hello {ctx.author.mention}!")
# COG ENDING
def setup(bot):
bot.add_cog(Welcome(bot))