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