text: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  import discord
  import discord.ext.commands
  from discord.ext import commands
  from discord.utils import get
  from res.mission import Mission
  
  
  class DailyCog(commands.Cog, name="Daily Commands"):
      """InvaderCog"""
  
      def __init__(self, bot):
          self.bot = bot
      #invoke_without_command = True means that the top level command will run
      #if non of the subcommands were able to run. this will allow for args
      #to be passed to the top level command
      @commands.group(aliases=['mission'], invoke_without_command = True)
      @commands.guild_only()
      async def daily(self, ctx, daily_number: int = None):
          if ctx.invoked_subcommand is None:
              sub_command = ctx.subcommand_passed
              await ctx.send(embed=Mission(self, sub_command, daily_number).embed_daily)
  
      @daily.command()
      async def next(self, ctx, *, arg1=None):
          sub_command = ctx.subcommand_passed
          await ctx.send(embed=Mission(self, sub_command).embed_daily)
      
      @daily.command()
      async def all(self, ctx, *, arg1=None):
          sub_command = ctx.subcommand_passed
          await ctx.send(embed=Mission(self, sub_command).embed_d_list)
  
  def setup(bot):
      bot.add_cog(DailyCog(bot))
  