Tried to add ~enso list functionality

pull/2/head
sgoudham 4 years ago
parent 878a5efe54
commit 44c27ef748

@ -44,6 +44,12 @@ class Waifus(commands.Cog):
if name: if name:
proper_name = name.lower() proper_name = name.lower()
if proper_name == "list":
await ctx.send(f"Try the names listed below!")
nice = string.capwords(', '.join(map(str, array)))
await ctx.send(nice)
try: try:
with open(f'images/ServerMembers/{proper_name}.txt') as file: with open(f'images/ServerMembers/{proper_name}.txt') as file:
images_array = file.readlines() images_array = file.readlines()

Loading…
Cancel
Save