def get_prefix(guild):
with con:
cur = con.cursor()
cur.execute(f"SELECT prefix FROM simple_voice.server_{guild.id};")
rows = cur.fetchall()
bot: commands.Bot = commands.Bot(command_prefix=get_prefix(тут нужно передавать сервер))