async def research(ctx, *, research=''): """Get the research details on a specific research. If multiple matches are found, only a brief summary will be provided""" df_research_designs = rs.get_research_designs() df_selected = rs.filter_researchdf(df_research_designs, research) txt = rs.research_to_txt(df_selected) if txt is None: await ctx.send("No entries found for '{}'".format(research)) else: await ctx.send(txt)
async def research(ctx, *, research=None): """Get the research details on a specific research. If multiple matches are found, only a brief summary will be provided""" if research is None: txt = 'Enter: {}research [research]'.format(command_prefix) await ctx.send(txt) return txt = command_prefix + 'research {}'.format(research) # write_log(txt, ctx.author, ctx.server) df_selected = rs.filter_researchdf(df_research_designs, research) txt = rs.research_to_txt(df_selected) if txt is None: await ctx.send("No entries found for '{}'".format(research)) else: await ctx.send(txt)