import discord
from discord.ext import commands

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

    @commands.Cog.listener()
    async def on_message(self, message):
        if message.author.bot:
            return

        if F"<@!{self.bot.user.id}>" == message.content or F"<@{self.bot.user.id}>" == message.content:
            prefix = await self.bot.db.fetch("SELECT prefix FROM prefixes WHERE guild_id = $1", message.guild.id)
            if len(prefix) == 0:
                prefix = "~b"
            else:
                prefix = prefix[0].get("prefix")
            ompmbed = discord.Embed(
                colour=0x2F3136,
                title=F"My Prefix here is `{prefix}`",
                timestamp=message.created_at
            )
            ompmbed.set_footer(text=message.author.display_name, icon_url=message.author.avatar_url)
            return await message.channel.send(embed=ompmbed)
    
    @commands.Cog.listener()
    async def on_message_edit(self, old, new):
        await self.bot.process_commands(new)

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

1f7888590dd49b9c80870dde0ba757539fc2d6aa
<mask token>


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

    @commands.Cog.listener()
    async def on_message(self, message):
        if message.author.bot:
            return
        if (f'<@!{self.bot.user.id}>' == message.content or 
            f'<@{self.bot.user.id}>' == message.content):
            prefix = await self.bot.db.fetch(
                'SELECT prefix FROM prefixes WHERE guild_id = $1', message.
                guild.id)
            if len(prefix) == 0:
                prefix = '~b'
            else:
                prefix = prefix[0].get('prefix')
            ompmbed = discord.Embed(colour=3092790, title=
                f'My Prefix here is `{prefix}`', timestamp=message.created_at)
            ompmbed.set_footer(text=message.author.display_name, icon_url=
                message.author.avatar_url)
            return await message.channel.send(embed=ompmbed)

    @commands.Cog.listener()
    async def on_message_edit(self, old, new):
        await self.bot.process_commands(new)


<mask token>

<mask token>


class OnMessage(commands.Cog):

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

    @commands.Cog.listener()
    async def on_message(self, message):
        if message.author.bot:
            return
        if (f'<@!{self.bot.user.id}>' == message.content or 
            f'<@{self.bot.user.id}>' == message.content):
            prefix = await self.bot.db.fetch(
                'SELECT prefix FROM prefixes WHERE guild_id = $1', message.
                guild.id)
            if len(prefix) == 0:
                prefix = '~b'
            else:
                prefix = prefix[0].get('prefix')
            ompmbed = discord.Embed(colour=3092790, title=
                f'My Prefix here is `{prefix}`', timestamp=message.created_at)
            ompmbed.set_footer(text=message.author.display_name, icon_url=
                message.author.avatar_url)
            return await message.channel.send(embed=ompmbed)

    @commands.Cog.listener()
    async def on_message_edit(self, old, new):
        await self.bot.process_commands(new)


<mask token>

<mask token>


class OnMessage(commands.Cog):

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

    @commands.Cog.listener()
    async def on_message(self, message):
        if message.author.bot:
            return
        if (f'<@!{self.bot.user.id}>' == message.content or 
            f'<@{self.bot.user.id}>' == message.content):
            prefix = await self.bot.db.fetch(
                'SELECT prefix FROM prefixes WHERE guild_id = $1', message.
                guild.id)
            if len(prefix) == 0:
                prefix = '~b'
            else:
                prefix = prefix[0].get('prefix')
            ompmbed = discord.Embed(colour=3092790, title=
                f'My Prefix here is `{prefix}`', timestamp=message.created_at)
            ompmbed.set_footer(text=message.author.display_name, icon_url=
                message.author.avatar_url)
            return await message.channel.send(embed=ompmbed)

    @commands.Cog.listener()
    async def on_message_edit(self, old, new):
        await self.bot.process_commands(new)


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

import discord
from discord.ext import commands


class OnMessage(commands.Cog):

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

    @commands.Cog.listener()
    async def on_message(self, message):
        if message.author.bot:
            return
        if (f'<@!{self.bot.user.id}>' == message.content or 
            f'<@{self.bot.user.id}>' == message.content):
            prefix = await self.bot.db.fetch(
                'SELECT prefix FROM prefixes WHERE guild_id = $1', message.
                guild.id)
            if len(prefix) == 0:
                prefix = '~b'
            else:
                prefix = prefix[0].get('prefix')
            ompmbed = discord.Embed(colour=3092790, title=
                f'My Prefix here is `{prefix}`', timestamp=message.created_at)
            ompmbed.set_footer(text=message.author.display_name, icon_url=
                message.author.avatar_url)
            return await message.channel.send(embed=ompmbed)

    @commands.Cog.listener()
    async def on_message_edit(self, old, new):
        await self.bot.process_commands(new)


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

import discord
from discord.ext import commands

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

    @commands.Cog.listener()
    async def on_message(self, message):
        if message.author.bot:
            return

        if F"<@!{self.bot.user.id}>" == message.content or F"<@{self.bot.user.id}>" == message.content:
            prefix = await self.bot.db.fetch("SELECT prefix FROM prefixes WHERE guild_id = $1", message.guild.id)
            if len(prefix) == 0:
                prefix = "~b"
            else:
                prefix = prefix[0].get("prefix")
            ompmbed = discord.Embed(
                colour=0x2F3136,
                title=F"My Prefix here is `{prefix}`",
                timestamp=message.created_at
            )
            ompmbed.set_footer(text=message.author.display_name, icon_url=message.author.avatar_url)
            return await message.channel.send(embed=ompmbed)
    
    @commands.Cog.listener()
    async def on_message_edit(self, old, new):
        await self.bot.process_commands(new)

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