import random
from random import choice

import discord
import requests
from bs4 import BeautifulSoup
from discord.ext import commands


class Fun(commands.Cog):
    def __init__(self, bot):
        self.bot = bot


    @commands.command()
    async def ping(self, ctx):
        """
        Pong!
        """
        await ctx.send("Pong!")

    @commands.command()
    async def topic(self, ctx):
        """
        Gets a random chat topic to keep the chat going.
        """
        website = requests.get('https://www.conversationstarters.com/generator.php').content
        soup = BeautifulSoup(website, 'html.parser')
        topic = soup.find(id="random").text
        await ctx.send(topic)

    @commands.command(aliases=['r'])
    async def roll(self, ctx, upper_bound=20 #type: int
                   ):
        """
        Roll a d20 or a d[upper_bound]
        :param upper_bound: the highest you can roll.
        :return: Your die roll
        """
        msg = random.randint(1,int(upper_bound))
        if msg == upper_bound:
            msg = "***Critical Hit!*** " + str(msg)
        elif msg == 1:
            msg = "***Critical Fail!*** " + str(msg)

        await ctx.send(f":game_die: You rolled a {msg}")

    @commands.command()
    @commands.is_owner()
    async def changegame(self, ctx, game):
        """
        Changes my displayed game. Only for privileged users!
        :param ctx: message context.
        :param game: a string of the game I am playing.
        :return: "Game Changed Successfully"
        """
        game = discord.Game(game)
        await self.bot.change_presence(status=discord.Status.online, activity=game)
        embedMsg = discord.Embed(color=0x90ee90, title=":video_game: Game changed successfully!")
        await ctx.send(embed=embedMsg)

    @commands.command()
    async def flip(self, ctx, user : discord.Member=None):
        """
        Flips a coin ... or a user. But not me.
        :param user: the user you are flipping
        :return: either a flipped coin or user
        """
        if user != None:
            msg = ""
            if user.id == self.bot.user.id:
                user = ctx.author
                msg = "Nice try. You think this is funny? How about *this* instead:\n\n"
            char = "abcdefghijklmnopqrstuvwxyz"
            tran = "ɐqɔpǝɟƃɥᴉɾʞlɯuodbɹsʇnʌʍxʎz"
            table = str.maketrans(char, tran)
            name = user.display_name.translate(table)
            char = char.upper()
            tran = "∀qƆpƎℲפHIſʞ˥WNOԀQᴚS┴∩ΛMX⅄Z"
            table = str.maketrans(char, tran)
            name = name.translate(table)
            await ctx.send(msg + "(╯°□°）╯︵ " + name[::-1])
        else:
            await ctx.send("*flips a coin and... " + choice(["HEADS!*", "TAILS!*"]))

    @commands.command()
    async def ded(self, ctx):
        # await ctx.send("https://giphy.com/gifs/bare-barren-Az1CJ2MEjmsp2")
        embed = discord.Embed()
        embed.set_image(url="https://i.imgur.com/X6pMtG4.gif")
        await ctx.channel.send(embed=embed)

    @commands.command()
    async def uwu(self, ctx, *, message):
        uwus = ['UwU', 'Uwu', 'uwU', 'ÚwÚ', 'uwu', '☆w☆' '✧w✧', '♥w♥', '︠uw ︠u', '(uwu)', 'OwO', 'owo', 'Owo', 'owO']
        res = message.replace("r", "w").replace("l", "w")
        await ctx.send(res + ' ' + random.choice(uwus))


    @commands.Cog.listener()
    async def on_message(self, message):
        if message.content.lower() == "f":
            await message.add_reaction(u"\U0001F1EB")
        if message.content.lower() == "press x to doubt":
            await message.add_reaction(u"\U0001F1FD")


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

016ba775ac09f6ac546f298eca92a01307a391e0
<mask token>


class Fun(commands.Cog):
    <mask token>

    @commands.command()
    async def ping(self, ctx):
        """
        Pong!
        """
        await ctx.send('Pong!')

    @commands.command()
    async def topic(self, ctx):
        """
        Gets a random chat topic to keep the chat going.
        """
        website = requests.get(
            'https://www.conversationstarters.com/generator.php').content
        soup = BeautifulSoup(website, 'html.parser')
        topic = soup.find(id='random').text
        await ctx.send(topic)

    @commands.command(aliases=['r'])
    async def roll(self, ctx, upper_bound=20):
        """
        Roll a d20 or a d[upper_bound]
        :param upper_bound: the highest you can roll.
        :return: Your die roll
        """
        msg = random.randint(1, int(upper_bound))
        if msg == upper_bound:
            msg = '***Critical Hit!*** ' + str(msg)
        elif msg == 1:
            msg = '***Critical Fail!*** ' + str(msg)
        await ctx.send(f':game_die: You rolled a {msg}')

    @commands.command()
    @commands.is_owner()
    async def changegame(self, ctx, game):
        """
        Changes my displayed game. Only for privileged users!
        :param ctx: message context.
        :param game: a string of the game I am playing.
        :return: "Game Changed Successfully"
        """
        game = discord.Game(game)
        await self.bot.change_presence(status=discord.Status.online,
            activity=game)
        embedMsg = discord.Embed(color=9498256, title=
            ':video_game: Game changed successfully!')
        await ctx.send(embed=embedMsg)

    @commands.command()
    async def flip(self, ctx, user: discord.Member=None):
        """
        Flips a coin ... or a user. But not me.
        :param user: the user you are flipping
        :return: either a flipped coin or user
        """
        if user != None:
            msg = ''
            if user.id == self.bot.user.id:
                user = ctx.author
                msg = (
                    'Nice try. You think this is funny? How about *this* instead:\n\n'
                    )
            char = 'abcdefghijklmnopqrstuvwxyz'
            tran = 'ɐqɔpǝɟƃɥᴉɾʞlɯuodbɹsʇnʌʍxʎz'
            table = str.maketrans(char, tran)
            name = user.display_name.translate(table)
            char = char.upper()
            tran = '∀qƆpƎℲפHIſʞ˥WNOԀQᴚS┴∩ΛMX⅄Z'
            table = str.maketrans(char, tran)
            name = name.translate(table)
            await ctx.send(msg + '(╯°□°）╯︵ ' + name[::-1])
        else:
            await ctx.send('*flips a coin and... ' + choice(['HEADS!*',
                'TAILS!*']))

    @commands.command()
    async def ded(self, ctx):
        embed = discord.Embed()
        embed.set_image(url='https://i.imgur.com/X6pMtG4.gif')
        await ctx.channel.send(embed=embed)

    @commands.command()
    async def uwu(self, ctx, *, message):
        uwus = ['UwU', 'Uwu', 'uwU', 'ÚwÚ', 'uwu', '☆w☆✧w✧', '♥w♥',
            '︠uw ︠u', '(uwu)', 'OwO', 'owo', 'Owo', 'owO']
        res = message.replace('r', 'w').replace('l', 'w')
        await ctx.send(res + ' ' + random.choice(uwus))

    @commands.Cog.listener()
    async def on_message(self, message):
        if message.content.lower() == 'f':
            await message.add_reaction(u'🇫')
        if message.content.lower() == 'press x to doubt':
            await message.add_reaction(u'🇽')


<mask token>

<mask token>


class Fun(commands.Cog):

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

    @commands.command()
    async def ping(self, ctx):
        """
        Pong!
        """
        await ctx.send('Pong!')

    @commands.command()
    async def topic(self, ctx):
        """
        Gets a random chat topic to keep the chat going.
        """
        website = requests.get(
            'https://www.conversationstarters.com/generator.php').content
        soup = BeautifulSoup(website, 'html.parser')
        topic = soup.find(id='random').text
        await ctx.send(topic)

    @commands.command(aliases=['r'])
    async def roll(self, ctx, upper_bound=20):
        """
        Roll a d20 or a d[upper_bound]
        :param upper_bound: the highest you can roll.
        :return: Your die roll
        """
        msg = random.randint(1, int(upper_bound))
        if msg == upper_bound:
            msg = '***Critical Hit!*** ' + str(msg)
        elif msg == 1:
            msg = '***Critical Fail!*** ' + str(msg)
        await ctx.send(f':game_die: You rolled a {msg}')

    @commands.command()
    @commands.is_owner()
    async def changegame(self, ctx, game):
        """
        Changes my displayed game. Only for privileged users!
        :param ctx: message context.
        :param game: a string of the game I am playing.
        :return: "Game Changed Successfully"
        """
        game = discord.Game(game)
        await self.bot.change_presence(status=discord.Status.online,
            activity=game)
        embedMsg = discord.Embed(color=9498256, title=
            ':video_game: Game changed successfully!')
        await ctx.send(embed=embedMsg)

    @commands.command()
    async def flip(self, ctx, user: discord.Member=None):
        """
        Flips a coin ... or a user. But not me.
        :param user: the user you are flipping
        :return: either a flipped coin or user
        """
        if user != None:
            msg = ''
            if user.id == self.bot.user.id:
                user = ctx.author
                msg = (
                    'Nice try. You think this is funny? How about *this* instead:\n\n'
                    )
            char = 'abcdefghijklmnopqrstuvwxyz'
            tran = 'ɐqɔpǝɟƃɥᴉɾʞlɯuodbɹsʇnʌʍxʎz'
            table = str.maketrans(char, tran)
            name = user.display_name.translate(table)
            char = char.upper()
            tran = '∀qƆpƎℲפHIſʞ˥WNOԀQᴚS┴∩ΛMX⅄Z'
            table = str.maketrans(char, tran)
            name = name.translate(table)
            await ctx.send(msg + '(╯°□°）╯︵ ' + name[::-1])
        else:
            await ctx.send('*flips a coin and... ' + choice(['HEADS!*',
                'TAILS!*']))

    @commands.command()
    async def ded(self, ctx):
        embed = discord.Embed()
        embed.set_image(url='https://i.imgur.com/X6pMtG4.gif')
        await ctx.channel.send(embed=embed)

    @commands.command()
    async def uwu(self, ctx, *, message):
        uwus = ['UwU', 'Uwu', 'uwU', 'ÚwÚ', 'uwu', '☆w☆✧w✧', '♥w♥',
            '︠uw ︠u', '(uwu)', 'OwO', 'owo', 'Owo', 'owO']
        res = message.replace('r', 'w').replace('l', 'w')
        await ctx.send(res + ' ' + random.choice(uwus))

    @commands.Cog.listener()
    async def on_message(self, message):
        if message.content.lower() == 'f':
            await message.add_reaction(u'🇫')
        if message.content.lower() == 'press x to doubt':
            await message.add_reaction(u'🇽')


<mask token>

<mask token>


class Fun(commands.Cog):

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

    @commands.command()
    async def ping(self, ctx):
        """
        Pong!
        """
        await ctx.send('Pong!')

    @commands.command()
    async def topic(self, ctx):
        """
        Gets a random chat topic to keep the chat going.
        """
        website = requests.get(
            'https://www.conversationstarters.com/generator.php').content
        soup = BeautifulSoup(website, 'html.parser')
        topic = soup.find(id='random').text
        await ctx.send(topic)

    @commands.command(aliases=['r'])
    async def roll(self, ctx, upper_bound=20):
        """
        Roll a d20 or a d[upper_bound]
        :param upper_bound: the highest you can roll.
        :return: Your die roll
        """
        msg = random.randint(1, int(upper_bound))
        if msg == upper_bound:
            msg = '***Critical Hit!*** ' + str(msg)
        elif msg == 1:
            msg = '***Critical Fail!*** ' + str(msg)
        await ctx.send(f':game_die: You rolled a {msg}')

    @commands.command()
    @commands.is_owner()
    async def changegame(self, ctx, game):
        """
        Changes my displayed game. Only for privileged users!
        :param ctx: message context.
        :param game: a string of the game I am playing.
        :return: "Game Changed Successfully"
        """
        game = discord.Game(game)
        await self.bot.change_presence(status=discord.Status.online,
            activity=game)
        embedMsg = discord.Embed(color=9498256, title=
            ':video_game: Game changed successfully!')
        await ctx.send(embed=embedMsg)

    @commands.command()
    async def flip(self, ctx, user: discord.Member=None):
        """
        Flips a coin ... or a user. But not me.
        :param user: the user you are flipping
        :return: either a flipped coin or user
        """
        if user != None:
            msg = ''
            if user.id == self.bot.user.id:
                user = ctx.author
                msg = (
                    'Nice try. You think this is funny? How about *this* instead:\n\n'
                    )
            char = 'abcdefghijklmnopqrstuvwxyz'
            tran = 'ɐqɔpǝɟƃɥᴉɾʞlɯuodbɹsʇnʌʍxʎz'
            table = str.maketrans(char, tran)
            name = user.display_name.translate(table)
            char = char.upper()
            tran = '∀qƆpƎℲפHIſʞ˥WNOԀQᴚS┴∩ΛMX⅄Z'
            table = str.maketrans(char, tran)
            name = name.translate(table)
            await ctx.send(msg + '(╯°□°）╯︵ ' + name[::-1])
        else:
            await ctx.send('*flips a coin and... ' + choice(['HEADS!*',
                'TAILS!*']))

    @commands.command()
    async def ded(self, ctx):
        embed = discord.Embed()
        embed.set_image(url='https://i.imgur.com/X6pMtG4.gif')
        await ctx.channel.send(embed=embed)

    @commands.command()
    async def uwu(self, ctx, *, message):
        uwus = ['UwU', 'Uwu', 'uwU', 'ÚwÚ', 'uwu', '☆w☆✧w✧', '♥w♥',
            '︠uw ︠u', '(uwu)', 'OwO', 'owo', 'Owo', 'owO']
        res = message.replace('r', 'w').replace('l', 'w')
        await ctx.send(res + ' ' + random.choice(uwus))

    @commands.Cog.listener()
    async def on_message(self, message):
        if message.content.lower() == 'f':
            await message.add_reaction(u'🇫')
        if message.content.lower() == 'press x to doubt':
            await message.add_reaction(u'🇽')


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

import random
from random import choice
import discord
import requests
from bs4 import BeautifulSoup
from discord.ext import commands


class Fun(commands.Cog):

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

    @commands.command()
    async def ping(self, ctx):
        """
        Pong!
        """
        await ctx.send('Pong!')

    @commands.command()
    async def topic(self, ctx):
        """
        Gets a random chat topic to keep the chat going.
        """
        website = requests.get(
            'https://www.conversationstarters.com/generator.php').content
        soup = BeautifulSoup(website, 'html.parser')
        topic = soup.find(id='random').text
        await ctx.send(topic)

    @commands.command(aliases=['r'])
    async def roll(self, ctx, upper_bound=20):
        """
        Roll a d20 or a d[upper_bound]
        :param upper_bound: the highest you can roll.
        :return: Your die roll
        """
        msg = random.randint(1, int(upper_bound))
        if msg == upper_bound:
            msg = '***Critical Hit!*** ' + str(msg)
        elif msg == 1:
            msg = '***Critical Fail!*** ' + str(msg)
        await ctx.send(f':game_die: You rolled a {msg}')

    @commands.command()
    @commands.is_owner()
    async def changegame(self, ctx, game):
        """
        Changes my displayed game. Only for privileged users!
        :param ctx: message context.
        :param game: a string of the game I am playing.
        :return: "Game Changed Successfully"
        """
        game = discord.Game(game)
        await self.bot.change_presence(status=discord.Status.online,
            activity=game)
        embedMsg = discord.Embed(color=9498256, title=
            ':video_game: Game changed successfully!')
        await ctx.send(embed=embedMsg)

    @commands.command()
    async def flip(self, ctx, user: discord.Member=None):
        """
        Flips a coin ... or a user. But not me.
        :param user: the user you are flipping
        :return: either a flipped coin or user
        """
        if user != None:
            msg = ''
            if user.id == self.bot.user.id:
                user = ctx.author
                msg = (
                    'Nice try. You think this is funny? How about *this* instead:\n\n'
                    )
            char = 'abcdefghijklmnopqrstuvwxyz'
            tran = 'ɐqɔpǝɟƃɥᴉɾʞlɯuodbɹsʇnʌʍxʎz'
            table = str.maketrans(char, tran)
            name = user.display_name.translate(table)
            char = char.upper()
            tran = '∀qƆpƎℲפHIſʞ˥WNOԀQᴚS┴∩ΛMX⅄Z'
            table = str.maketrans(char, tran)
            name = name.translate(table)
            await ctx.send(msg + '(╯°□°）╯︵ ' + name[::-1])
        else:
            await ctx.send('*flips a coin and... ' + choice(['HEADS!*',
                'TAILS!*']))

    @commands.command()
    async def ded(self, ctx):
        embed = discord.Embed()
        embed.set_image(url='https://i.imgur.com/X6pMtG4.gif')
        await ctx.channel.send(embed=embed)

    @commands.command()
    async def uwu(self, ctx, *, message):
        uwus = ['UwU', 'Uwu', 'uwU', 'ÚwÚ', 'uwu', '☆w☆✧w✧', '♥w♥',
            '︠uw ︠u', '(uwu)', 'OwO', 'owo', 'Owo', 'owO']
        res = message.replace('r', 'w').replace('l', 'w')
        await ctx.send(res + ' ' + random.choice(uwus))

    @commands.Cog.listener()
    async def on_message(self, message):
        if message.content.lower() == 'f':
            await message.add_reaction(u'🇫')
        if message.content.lower() == 'press x to doubt':
            await message.add_reaction(u'🇽')


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

import random
from random import choice

import discord
import requests
from bs4 import BeautifulSoup
from discord.ext import commands


class Fun(commands.Cog):
    def __init__(self, bot):
        self.bot = bot


    @commands.command()
    async def ping(self, ctx):
        """
        Pong!
        """
        await ctx.send("Pong!")

    @commands.command()
    async def topic(self, ctx):
        """
        Gets a random chat topic to keep the chat going.
        """
        website = requests.get('https://www.conversationstarters.com/generator.php').content
        soup = BeautifulSoup(website, 'html.parser')
        topic = soup.find(id="random").text
        await ctx.send(topic)

    @commands.command(aliases=['r'])
    async def roll(self, ctx, upper_bound=20 #type: int
                   ):
        """
        Roll a d20 or a d[upper_bound]
        :param upper_bound: the highest you can roll.
        :return: Your die roll
        """
        msg = random.randint(1,int(upper_bound))
        if msg == upper_bound:
            msg = "***Critical Hit!*** " + str(msg)
        elif msg == 1:
            msg = "***Critical Fail!*** " + str(msg)

        await ctx.send(f":game_die: You rolled a {msg}")

    @commands.command()
    @commands.is_owner()
    async def changegame(self, ctx, game):
        """
        Changes my displayed game. Only for privileged users!
        :param ctx: message context.
        :param game: a string of the game I am playing.
        :return: "Game Changed Successfully"
        """
        game = discord.Game(game)
        await self.bot.change_presence(status=discord.Status.online, activity=game)
        embedMsg = discord.Embed(color=0x90ee90, title=":video_game: Game changed successfully!")
        await ctx.send(embed=embedMsg)

    @commands.command()
    async def flip(self, ctx, user : discord.Member=None):
        """
        Flips a coin ... or a user. But not me.
        :param user: the user you are flipping
        :return: either a flipped coin or user
        """
        if user != None:
            msg = ""
            if user.id == self.bot.user.id:
                user = ctx.author
                msg = "Nice try. You think this is funny? How about *this* instead:\n\n"
            char = "abcdefghijklmnopqrstuvwxyz"
            tran = "ɐqɔpǝɟƃɥᴉɾʞlɯuodbɹsʇnʌʍxʎz"
            table = str.maketrans(char, tran)
            name = user.display_name.translate(table)
            char = char.upper()
            tran = "∀qƆpƎℲפHIſʞ˥WNOԀQᴚS┴∩ΛMX⅄Z"
            table = str.maketrans(char, tran)
            name = name.translate(table)
            await ctx.send(msg + "(╯°□°）╯︵ " + name[::-1])
        else:
            await ctx.send("*flips a coin and... " + choice(["HEADS!*", "TAILS!*"]))

    @commands.command()
    async def ded(self, ctx):
        # await ctx.send("https://giphy.com/gifs/bare-barren-Az1CJ2MEjmsp2")
        embed = discord.Embed()
        embed.set_image(url="https://i.imgur.com/X6pMtG4.gif")
        await ctx.channel.send(embed=embed)

    @commands.command()
    async def uwu(self, ctx, *, message):
        uwus = ['UwU', 'Uwu', 'uwU', 'ÚwÚ', 'uwu', '☆w☆' '✧w✧', '♥w♥', '︠uw ︠u', '(uwu)', 'OwO', 'owo', 'Owo', 'owO']
        res = message.replace("r", "w").replace("l", "w")
        await ctx.send(res + ' ' + random.choice(uwus))


    @commands.Cog.listener()
    async def on_message(self, message):
        if message.content.lower() == "f":
            await message.add_reaction(u"\U0001F1EB")
        if message.content.lower() == "press x to doubt":
            await message.add_reaction(u"\U0001F1FD")


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