|
|
@ -142,6 +142,9 @@ class Waifus(commands.Cog):
|
|
|
|
# Get the lowercase
|
|
|
|
# Get the lowercase
|
|
|
|
proper_name = name.lower()
|
|
|
|
proper_name = name.lower()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Surround with try/except to catch any exceptions that may occur
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
|
|
|
|
# if the user does ~enso list
|
|
|
|
# if the user does ~enso list
|
|
|
|
if proper_name == "list":
|
|
|
|
if proper_name == "list":
|
|
|
|
# Tell the user to try the names in the array
|
|
|
|
# Tell the user to try the names in the array
|
|
|
@ -151,8 +154,7 @@ class Waifus(commands.Cog):
|
|
|
|
server_members = string.capwords(', '.join(map(str, array)))
|
|
|
|
server_members = string.capwords(', '.join(map(str, array)))
|
|
|
|
await ctx.send(server_members)
|
|
|
|
await ctx.send(server_members)
|
|
|
|
|
|
|
|
|
|
|
|
# Surround with try/except to catch any exceptions that may occur
|
|
|
|
else:
|
|
|
|
try:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Retrieve image of the member specified
|
|
|
|
# Retrieve image of the member specified
|
|
|
|
with open(f'images/ServerMembers/{proper_name}.txt') as file:
|
|
|
|
with open(f'images/ServerMembers/{proper_name}.txt') as file:
|
|
|
|