Merge pull request #239 from OpzekerIT/dev

tourists
This commit is contained in:
Lanta 2025-10-02 10:56:52 +02:00 committed by GitHub
commit 1e09e73ac2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -251,5 +251,16 @@ async def moveall(ctx):
await ctx.send(f"{moved_members} speler(s) zijn verplaatst naar het teamify kanaal.") await ctx.send(f"{moved_members} speler(s) zijn verplaatst naar het teamify kanaal.")
else: else:
await ctx.send("Er waren geen spelers om te verplaatsen.") await ctx.send("Er waren geen spelers om te verplaatsen.")
@bot.command()
async def iamgamer(ctx):
role = discord.utils.get(ctx.guild.roles, name="Tourists")
if role is None:
await ctx.send("De rol **Tourists** bestaat niet!")
return
try:
await ctx.author.add_roles(role)
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.run(token) bot.run(token)