original_docstring: Gets info about contests upcoming in the next 8 days.
docstring: Gets info about contests upcoming in the next 8 days.
docstring_tokens: Gets info about contests upcoming in the next 8 days .
code: async def contests(ctx):
      '''Gets info about contests upcoming in the next 8 days.'''
  
      with ctx.typing():
          feed = feedparser.parse('http://www.contestcalendar.com/calendar.rss')
  
          contests = {e['title']:(e['summary'], e['link']) for e in feed['entries']}
  
          embed = discord.Embed(title='Contests in the Next 8 Days',
                                  url='http://www.contestcalendar.com/weeklycont.php',
                                  colour=green)
          embed = embed.set_footer(text='Data courtesy ContestCalendar.com')
          for c, d in contests.items():
              embed = embed.add_field(name=c, value='\n'.join(d), inline=True)
      await ctx.send(embed=embed)
code_tokens: async def contests ( ctx ) : with ctx . typing ( ) : feed = feedparser . parse ( 'http://www.contestcalendar.com/calendar.rss' ) contests = { e [ 'title' ] : ( e [ 'summary' ] , e [ 'link' ] ) for e in feed [ 'entries' ] } embed = discord . Embed ( title = 'Contests in the Next 8 Days' , url = 'http://www.contestcalendar.com/weeklycont.php' , colour = green ) embed = embed . set_footer ( text = 'Data courtesy ContestCalendar.com' ) for c , d in contests . items ( ) : embed = embed . add_field ( name = c , value = '\n' . join ( d ) , inline = True ) await ctx . send ( embed = embed )
short_docstring: Gets info about contests upcoming in the next 8 days.
short_docstring_tokens: Gets info about contests upcoming in the next 8 days .
comment: '''Gets info about contests upcoming in the next 8 days.'''