original_docstring: Returns the answer to question last asked (Optional argument: your answer).
docstring: Returns the answer to question last asked (Optional argument: your answer).
docstring_tokens: Returns the answer to question last asked ( Optional argument : your answer ) .
code: async def rqa(ctx, ans : str = None):
      '''Returns the answer to question last asked (Optional argument: your answer).'''
      with ctx.typing():
          global lastq
          correct_ans = lastq[ctx.message.channel.id][1]
          q_num = lastq[ctx.message.channel.id][0]
          if ans is not None:
              ans = ans.upper()
              if ans == correct_ans:
                  result = f'Correct! The answer to {q_num} was **{correct_ans}**.'
                  embed = discord.Embed(title=f'{q_num} Answer', description=result, colour=green)
              else:
                  result = f'Incorrect. The answer to {q_num} was **{correct_ans}**, not **{ans}**.'
                  embed = discord.Embed(title=f'{q_num} Answer', description=result, colour=red)
          else:
              result = f'The correct answer to {q_num} was **{correct_ans}**.'
              embed = discord.Embed(title=f'{q_num} Answer', description=result, colour=blue)
      await ctx.send(embed=embed)
code_tokens: async def rqa ( ctx , ans : str = None ) : with ctx . typing ( ) : global lastq correct_ans = lastq [ ctx . message . channel . id ] [ 1 ] q_num = lastq [ ctx . message . channel . id ] [ 0 ] if ans is not None : ans = ans . upper ( ) if ans == correct_ans : result = f'Correct! The answer to {q_num} was **{correct_ans}**.' embed = discord . Embed ( title = f'{q_num} Answer' , description = result , colour = green ) else : result = f'Incorrect. The answer to {q_num} was **{correct_ans}**, not **{ans}**.' embed = discord . Embed ( title = f'{q_num} Answer' , description = result , colour = red ) else : result = f'The correct answer to {q_num} was **{correct_ans}**.' embed = discord . Embed ( title = f'{q_num} Answer' , description = result , colour = blue ) await ctx . send ( embed = embed )
short_docstring: Returns the answer to question last asked (Optional argument: your answer).
short_docstring_tokens: Returns the answer to question last asked ( Optional argument : your answer ) .
comment: '''Returns the answer to question last asked (Optional argument: your answer).'''