Update functions.py

This commit is contained in:
Elmon11 2020-12-18 18:20:05 +01:00 committed by GitHub
parent 73b08a360d
commit 19519023e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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: