refactor this code import requests

app\_id = '1055820850294702131'
guild\_id = '1055807514287026260'
bot\_token = 'MTA1NTgyMDg1MDI5NDcwMjEzMQ.GxxK4p.d8JJYlsv-Jh85RxYhJZnOWcL2CjMz5fV5T5AKA'
#url = f'https://discord.com/api/v8/applications/{app\_id}/guilds/{guild\_id}/commands'
url = f'https://discord.com/api/v8/applications/{app\_id}/commands'

headers = {
 "Authorization": f"Bot {bot\_token}",
 "Content-Type": "application/json",
}

command\_data = {
 "name": "mando",
 "type": 1,
 "description": ";/",
}

response = requests.post(url, json=command\_data, headers=headers)
print(response.text)
user
```python
import requests

app_id = '1055820850294702131'
guild_id = '1055807514287026260'
bot_token = 'mta1ntgymdg1mdi5ndcwmjezmq.gxxk4p.d8jjylsv-jh85rxyhjznowcl2cjmz5fv5t5aka'
# url = f'https://discord.com/api/v8/applications/{app_id}/guilds/{guild_id}/commands'
url = f'https://discord.com/api/v8/applications/{app_id}/commands'

headers = {
    "authorization": f"bot {bot_token}",
    "content-type": "application/json",
}

command_data = {
    "name": "mando",
    "type": 1,
    "description": ";/"
}

response = requests.post(url, json=command_data, headers=headers)
print(response.text)
```

i have removed the unnecessary escape characters and reformatted the code for better readability.
assistant
```python
import requests

app_id = '1055820850294702131'
guild_id = '1055807514287026260'
bot_token = 'MTA1NTgyMDg1MDI5NDcwMjEzMQ.GxxK4p.d8JJYlsv-Jh85RxYhJZnOWcL2CjMz5fV5T5AKA'
# url = f'https://discord.com/api/v8/applications/{app_id}/guilds/{guild_id}/commands'
url = f'https://discord.com/api/v8/applications/{app_id}/commands'

headers = {
    "Authorization": f"Bot {bot_token}",
    "Content-Type": "application/json",
}

command_data = {
    "name": "mando",
    "type": 1,
    "description": ";/"
}

response = requests.post(url, json=command_data, headers=headers)
print(response.text)
```

I have removed the unnecessary escape characters and reformatted the code for better readability.
assistant