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

print direct messages

This commit is contained in:
ddorn
2020-05-10 17:30:45 +02:00
parent 4492a5785d
commit ab02ffa859
6 changed files with 47 additions and 22 deletions

View File

@@ -4,6 +4,13 @@ import psutil
from discord.ext.commands import Bot
def fg(text, color: int = 0xFFA500):
r = color >> 16
g = color >> 8 & 0xFF
b = color & 0xFF
return f"\033[38;2;{r};{g};{b}m{text}\033[m"
def french_join(l):
l = list(l)
start = ", ".join(l[:-1])