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:
@@ -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."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user