# Standard library imports
import json

# Our setup file
with open('../setup.json') as file:
    setup_file = json.load(file)

# Our user agent
user_agent = "Pixie (https://github.com/GetRektByMe/Pixie)"


# A function to use with checks to check for owner
def is_owner(ctx):
    return ctx.message.author.id == setup_file["discord"]['owner_id']


# Sanitises roles so when functions that print roles are used it doesn't ping @everyone
def safe_roles(roles: list):
    names = []
    for role in roles:
        if role.name == "@everyone":
            names.append("@\u200beveryone")  # \u200b is an invisible space
        else:
            names.append(role.name)
    return names

@@ -343,341 +343,4 @@
 d'%5D%0A
-%0A%0A# Sanitises roles so when functions that print roles are used it doesn't ping @everyone%0Adef safe_roles(roles: list):%0A    names = %5B%5D%0A    for role in roles:%0A        if role.name == %22@everyone%22:%0A            names.append(%22@%5Cu200beveryone%22)  # %5Cu200b is an invisible space%0A        else:%0A            names.append(role.name)%0A    return names%0A

remove safe_roles()