예제 #1
0
    async def remove_map_command(self, ctx, map_name):
        used_maps = self.client.global_variables.used_maps
        map_to_remove = Map.from_name(map_name)
        if map_to_remove not in used_maps:
            await ctx.send(ctx.author.mention + " The map `" + map_name +
                           "` is not in the used maps list")
            return

        used_maps.remove(map_to_remove)
        await ctx.send(ctx.author.mention + " The map `" + map_name +
                       "` was removed from the used maps list")
        await ctx.send(embed=ListUtils.get_embed(used_maps, "Used Maps"))
예제 #2
0
 async def get_used_maps_command(self, ctx):
     await ctx.send(embed=ListUtils.get_embed(
         self.client.global_variables.used_maps, 'Used Maps'))