Trying to make sure that ~w list doesn't colide with other commands

pull/2/head
sgoudham 4 years ago
parent 03d84a0515
commit d540f1dc9b

@ -283,16 +283,17 @@ class Waifus(commands.Cog):
await ctx.send(husbando_list) await ctx.send(husbando_list)
sys.exit(0) sys.exit(0)
# Retrieve image of the husbando specified else:
with open(f'images/AnimeImages/Husbandos/{proper_husbando}.txt') as file: # Retrieve image of the husbando specified
h_array = file.readlines() with open(f'images/AnimeImages/Husbandos/{proper_husbando}.txt') as file:
h_array = file.readlines()
# Get the full name of the husbando # Get the full name of the husbando
full_name = Abbrev(proper_husbando) full_name = Abbrev(proper_husbando)
# Embed the image into a message and send it to the channel # Embed the image into a message and send it to the channel
embed = displayAnimeImage(h_array, ctx, full_name) embed = displayAnimeImage(h_array, ctx, full_name)
await ctx.send(embed=embed) await ctx.send(embed=embed)
except Exception as e: except Exception as e:
print(e) print(e)
@ -301,7 +302,6 @@ class Waifus(commands.Cog):
await ctx.send( await ctx.send(
f"Sorry! That husbando doesn't exist!" f"Sorry! That husbando doesn't exist!"
f"\nPlease do **~h list** to see the list of husbando's") f"\nPlease do **~h list** to see the list of husbando's")
else: else:
# Get embed from randomHusbando() and send it to the channel # Get embed from randomHusbando() and send it to the channel

Loading…
Cancel
Save