From 3316e9289f0137aa614f1d951304cbd9a2bcd3ed Mon Sep 17 00:00:00 2001 From: ElBe <90863907+ElBe-Plaq@users.noreply.github.com> Date: Fri, 14 Oct 2022 18:04:09 +0200 Subject: [PATCH] Update command_creator.py --- Bot/command_creator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Bot/command_creator.py b/Bot/command_creator.py index 967dd71..548ccfb 100644 --- a/Bot/command_creator.py +++ b/Bot/command_creator.py @@ -1,8 +1,8 @@ ''' -Slash command creator for the discord.py The Guardians Bot. +Slash command creator for the discord.py Bot. © by ElBe. -Version: 0.1.3 +Version: 0.1.4 ''' #Imports @@ -10,9 +10,9 @@ import requests import functions #Variables -url = 'https://discord.com/api/v10/applications/' + functions.json_module.get_config('Config')['Application ID'] + '/commands' +url = 'https://discord.com/api/v10/applications/' + str(functions.json_module.get_config('Config')['Application ID']) + '/commands' headers = { - 'Authorization': 'Bot ' + functions.json_module.get_config('Config')['Token'] + 'Authorization': 'Bot ' + str(functions.json_module.get_config('Config')['Token']) } #Example Command