|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If we couldn't find anything, return an error. |
|
|
# If we couldn't find anything, return an error. |
|
|
if not comic: |
|
|
if not comic: |
|
|
return await ctx.send("Couldn't find that comic.".format(ctx.message.author.mention)) |
|
|
|
|
|
|
|
|
return await ctx.send("Couldn't find that comic.") |
|
|
else: |
|
|
else: |
|
|
# Otherwise, show the comic |
|
|
# Otherwise, show the comic |
|
|
embed = Embed(title=comic["safe_title"], description="xkcd #{} by Randall Munroe".format(comic["num"])) |
|
|
embed = Embed(title=comic["safe_title"], description="xkcd #{} by Randall Munroe".format(comic["num"])) |