mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2025-01-03 13:18:18 +00:00
Update functions.py
This commit is contained in:
parent
3fa9b6e28c
commit
837b69aa5b
1 changed files with 3 additions and 5 deletions
|
@ -1,14 +1,12 @@
|
||||||
import discord
|
|
||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from discord.ext import commands
|
|
||||||
from checks import *
|
from checks import *
|
||||||
|
|
||||||
|
|
||||||
def format_list_entry(embed, list, name):
|
def format_list_entry(embed, l, name):
|
||||||
embed.add_field(name="{} ({})".format(name, len(list)),
|
embed.add_field(name="{} ({})".format(name, len(l)),
|
||||||
value=", ".join(list), inline=False)
|
value=", ".join(l), inline=False)
|
||||||
return embed
|
return embed
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue