Update command_creator.py

This commit is contained in:
ElBe 2022-10-14 18:04:09 +02:00 committed by GitHub
parent c04955d532
commit 3316e9289f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
''' '''
Slash command creator for the discord.py The Guardians Bot. Slash command creator for the discord.py Bot.
© by ElBe. © by ElBe.
Version: 0.1.3 Version: 0.1.4
''' '''
#Imports #Imports
@ -10,9 +10,9 @@ import requests
import functions import functions
#Variables #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 = { headers = {
'Authorization': 'Bot ' + functions.json_module.get_config('Config')['Token'] 'Authorization': 'Bot ' + str(functions.json_module.get_config('Config')['Token'])
} }
#Example Command #Example Command