# Von V2
# Copyright (c) 2018 sirtezza451
# -*- coding: utf-8 -*-

import aiohttp
import discord
from discord.ext import commands


class Image:
    def __init__(self, bot):
        self.bot = bot

    @commands.command(
        description="Sends you a random picture of a cat.", usage="cat", brief="cat"
    )
    async def cat(self, ctx):
        async with ctx.typing():
            embed = discord.Embed()
            embed.title = ":cat: Meow"
            embed.colour = 0x0099FF

            async with self.bot.session.get("http://aws.random.cat/meow") as r:
                f = await r.json()
                embed.set_image(url=f["file"])
            await ctx.send(embed=embed)

    @commands.command(
        description="Sends you a random picture of a dog.", usage="dog", brief="dog"
    )
    async def dog(self, ctx):
        async with ctx.typing():
            embed = discord.Embed()
            embed.title = ":dog: Woof"
            embed.colour = 0x0099FF

            async with self.bot.session.get(
                "https://dog.ceo/api/breeds/image/random"
            ) as r:
                f = await r.json()
                embed.set_image(url=f["message"])
            await ctx.send(embed=embed)


def setup(bot):
    bot.add_cog(Image(bot))

98bd7a0909605415e8f9cfaa14da970484f029fa
<mask token>

<mask token>


class Image:

    def __init__(self, bot):
        self.bot = bot

    @commands.command(description='Sends you a random picture of a cat.',
        usage='cat', brief='cat')
    async def cat(self, ctx):
        async with ctx.typing():
            embed = discord.Embed()
            embed.title = ':cat: Meow'
            embed.colour = 39423
            async with self.bot.session.get('http://aws.random.cat/meow') as r:
                f = await r.json()
                embed.set_image(url=f['file'])
            await ctx.send(embed=embed)

    @commands.command(description='Sends you a random picture of a dog.',
        usage='dog', brief='dog')
    async def dog(self, ctx):
        async with ctx.typing():
            embed = discord.Embed()
            embed.title = ':dog: Woof'
            embed.colour = 39423
            async with self.bot.session.get(
                'https://dog.ceo/api/breeds/image/random') as r:
                f = await r.json()
                embed.set_image(url=f['message'])
            await ctx.send(embed=embed)


<mask token>

<mask token>


class Image:

    def __init__(self, bot):
        self.bot = bot

    @commands.command(description='Sends you a random picture of a cat.',
        usage='cat', brief='cat')
    async def cat(self, ctx):
        async with ctx.typing():
            embed = discord.Embed()
            embed.title = ':cat: Meow'
            embed.colour = 39423
            async with self.bot.session.get('http://aws.random.cat/meow') as r:
                f = await r.json()
                embed.set_image(url=f['file'])
            await ctx.send(embed=embed)

    @commands.command(description='Sends you a random picture of a dog.',
        usage='dog', brief='dog')
    async def dog(self, ctx):
        async with ctx.typing():
            embed = discord.Embed()
            embed.title = ':dog: Woof'
            embed.colour = 39423
            async with self.bot.session.get(
                'https://dog.ceo/api/breeds/image/random') as r:
                f = await r.json()
                embed.set_image(url=f['message'])
            await ctx.send(embed=embed)


def setup(bot):
    bot.add_cog(Image(bot))

import aiohttp
import discord
from discord.ext import commands


class Image:

    def __init__(self, bot):
        self.bot = bot

    @commands.command(description='Sends you a random picture of a cat.',
        usage='cat', brief='cat')
    async def cat(self, ctx):
        async with ctx.typing():
            embed = discord.Embed()
            embed.title = ':cat: Meow'
            embed.colour = 39423
            async with self.bot.session.get('http://aws.random.cat/meow') as r:
                f = await r.json()
                embed.set_image(url=f['file'])
            await ctx.send(embed=embed)

    @commands.command(description='Sends you a random picture of a dog.',
        usage='dog', brief='dog')
    async def dog(self, ctx):
        async with ctx.typing():
            embed = discord.Embed()
            embed.title = ':dog: Woof'
            embed.colour = 39423
            async with self.bot.session.get(
                'https://dog.ceo/api/breeds/image/random') as r:
                f = await r.json()
                embed.set_image(url=f['message'])
            await ctx.send(embed=embed)


def setup(bot):
    bot.add_cog(Image(bot))

# Von V2
# Copyright (c) 2018 sirtezza451
# -*- coding: utf-8 -*-

import aiohttp
import discord
from discord.ext import commands


class Image:
    def __init__(self, bot):
        self.bot = bot

    @commands.command(
        description="Sends you a random picture of a cat.", usage="cat", brief="cat"
    )
    async def cat(self, ctx):
        async with ctx.typing():
            embed = discord.Embed()
            embed.title = ":cat: Meow"
            embed.colour = 0x0099FF

            async with self.bot.session.get("http://aws.random.cat/meow") as r:
                f = await r.json()
                embed.set_image(url=f["file"])
            await ctx.send(embed=embed)

    @commands.command(
        description="Sends you a random picture of a dog.", usage="dog", brief="dog"
    )
    async def dog(self, ctx):
        async with ctx.typing():
            embed = discord.Embed()
            embed.title = ":dog: Woof"
            embed.colour = 0x0099FF

            async with self.bot.session.get(
                "https://dog.ceo/api/breeds/image/random"
            ) as r:
                f = await r.json()
                embed.set_image(url=f["message"])
            await ctx.send(embed=embed)


def setup(bot):
    bot.add_cog(Image(bot))
