mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 07:34:57 +00:00
Update functions.py
This commit is contained in:
parent
73b08a360d
commit
19519023e0
1 changed files with 3 additions and 3 deletions
|
@ -12,15 +12,15 @@ class embed_entry:
|
|||
self.playercount = playercount
|
||||
|
||||
def format_list_entry(embed, l, name):
|
||||
l_names = []
|
||||
[l_names.append(f'`{l[i]}`') for i in range(len(l))]
|
||||
l_names = [f'{l[i]}' for i in range(len(l))]
|
||||
l_names = [name.replace('_', '\_') for name in l_names]
|
||||
|
||||
em = embed_entry(name=name,
|
||||
value=", ".join(l_names),
|
||||
playercount = len(l)
|
||||
)
|
||||
return em
|
||||
|
||||
|
||||
def did_mention_other_user(users, author):
|
||||
for user in users:
|
||||
if user is not author:
|
||||
|
|
Loading…
Reference in a new issue