diff --git a/discord/teammakerv2.py b/discord/teammakerv2.py index d572d12..645e8aa 100644 --- a/discord/teammakerv2.py +++ b/discord/teammakerv2.py @@ -215,7 +215,14 @@ async def on_voice_state_update(member, before, after): async def on_member_join(member): logging_channel = discord.utils.get(member.guild.text_channels, name="raadhuisplein") if logging_channel: - await logging_channel.send(f"๐ŸŽ‰ Welkom {member.mention} op de server! We hopen dat je een leuke tijd hebt!") + welcome_message = ( + f"๐ŸŽ‰ Welcome {member.mention} to **{member.guild.name}**!\n\n" + "๐Ÿ‘‹ We're glad to have you here.\n" + "๐Ÿ‘‰ Want to jump right in? Type `!iamgamer` in the chat and you'll get the **Tourists** role.\n" + "With that role you can join the fun and games with everyone else. ๐ŸŽฎ\n\n" + "Enjoy your stay and have a great time! ๐Ÿš€" + ) + await logging_channel.send(welcome_message) @bot.event async def on_member_remove(member): @@ -263,4 +270,51 @@ async def iamgamer(ctx): await ctx.send(f"โœ… {ctx.author.mention}, je bent nu een **Tourist**! Veel plezier! ๐ŸŽฎ") except Exception as e: await ctx.send(f"Er is iets misgegaan bij het toekennen van de rol: {e}") +@bot.command(name="help", aliases=["commands"]) +async def help_command(ctx): + embed = discord.Embed( + title="๐Ÿ“– Bot Command Help", + description="Hereโ€™s a list of all available commands and how to use them:", + color=discord.Color.blue() + ) + + embed.add_field( + name="๐Ÿ‘‰ !teamify", + value=( + "`!teamify` - Split players into random teams of max 4.\n" + "`!teamify ` - Split players into a given number of teams.\n" + "`!teamify move` - Split & move players into temporary voice channels.\n" + "`!teamify move` - Auto split & move players.\n" + "๐Ÿ”น Works only in the **#teamify** channel." + ), + inline=False + ) + + embed.add_field( + name="๐Ÿ‘‰ !moveall", + value="`!moveall` - Moves all players from other voice channels into the **teamify** channel.", + inline=False + ) + + embed.add_field( + name="๐Ÿ‘‰ !whoisbest", + value=( + "`!whoisbest [category] [matchesback]`\n" + "Shows the top 3 players based on win ratio and average damage.\n" + "`category` = e.g. Casual, Ranked\n" + "`matchesback` = minimum matches required (default: 18)\n" + "Example: `!whoisbest Casual 18`" + ), + inline=False + ) + + embed.add_field( + name="๐Ÿ‘‰ !iamgamer", + value="`!iamgamer` - Gives you the **Tourists** role ๐ŸŽฎ so you can join games and unlock more fun.", + inline=False + ) + + embed.set_footer(text="โœจ For advanced options, use: !teamify help or !whoisbest help") + + await ctx.send(embed=embed) bot.run(token)