1
0
mirror of https://gitlab.com/ddorn/tfjm-discord-bot.git synced 2025-12-14 20:45:15 +01:00

🚧 WIP: better and more flexible tirages

This commit is contained in:
ddorn
2020-05-06 02:27:09 +02:00
parent 7261a52454
commit 5ed508be10
3 changed files with 509 additions and 273 deletions

View File

@@ -4,6 +4,11 @@ import psutil
from discord.ext.commands import Bot
def french_join(l):
start = ", ".join(l[:-1])
return f"{start} et {l[-1]}"
def has_role(member, role: str):
"""Return whether the member has a role with this name."""