@commands.Cog.listener()
async def on_message(self, message):
commands = database.get_commands(message.guild.id)
for cmd in commands:
if message.content == f'!{cmd['name']}':
await message.channel.send(cmd['msg'])