Add AquaBot title

and some other minor changes
This commit is contained in:
CramMK
2020-01-19 15:21:37 +01:00
parent e587afb76c
commit c0450c5bbe
10 changed files with 95 additions and 52 deletions

View File

@@ -9,28 +9,27 @@ import discord
from discord.ext import commands
# COG INIT
class WelcomeCog(commands.Cog):
class Welcome(commands.Cog):
def __init__(self, bot):
self.bot = bot
# COG BODY
@commands.Cog.listener()
async def on_member_join(self, member):
"""
Greets new users joining your server
"""
channel = member.guild.system_channel
text = f"Welcome {member.mention} to our useless Discord!"
if channel is not None:
await channel.send(text)
@commands.command(
name="hello",
description="Hello!"
)
@commands.command(name="hello")
async def hello(self, ctx):
await ctx.send(f"Hello {ctx.author.mention}!")
# COG ENDING
def setup(bot):
bot.add_cog(WelcomeCog(bot))
bot.add_cog(Welcome(bot))