@commands.command()
async def name(self, ctx):
    old_name = ctx.author.display_name
    new_name = ctx.message.content[6:]
    print(old_name)
    print(new_name)
    channel = self.bot.get_channel(self.strike_channel_id)
    async for msg in channel.history(limit=None):
        text = msg.content.replace('```', '')
        text_lst = text.split('\n')
        d = {}
        for line in text_lst:
            try:
                (name, strikes) = line.rsplit(' - ', 1)
            except:
                continue
            d[name] = int(strikes)
        if (old_name in d):
            d[new_name] = d[old_name]
            del d[old_name]
        inner_text = ''
        for (k, v) in d.items():
            inner_text += f'''{k} - {v}
'''
        full_text = f'''```
{inner_text}```'''
        (await msg.edit(content=full_text))
    db.change_name(old_name, new_name)
    (await ctx.author.edit(nick=new_name))
    (await ctx.channel.send('Name Changed!'))
@commands.command()
async def name(self, ctx):
    old_name = ctx.author.display_name
    new_name = ctx.message.content[6:]
    print(old_name)
    print(new_name)
    channel = self.bot.get_channel(self.strike_channel_id)
    async for msg in channel.history(limit=None):
        text = msg.content.replace('```', )
        text_lst = text.split('\n')
        d = {}
        for line in text_lst:
            try:
                (name, strikes) = line.rsplit(' - ', 1)
            except:
                continue
            d[name] = int(strikes)
        if (old_name in d):
            d[new_name] = d[old_name]
            del d[old_name]
        inner_text = 
        for (k, v) in d.items():
            inner_text += f'{k} - {v}
'
        full_text = f'```
{inner_text}```'
        (await msg.edit(content=full_text))
    db.change_name(old_name, new_name)
    (await ctx.author.edit(nick=new_name))
    (await ctx.channel.send('Name Changed!'))