From ca48b67a01acfb34352c916e257270d30fe6e7a9 Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Sun, 25 Apr 2021 11:46:35 -0400 Subject: [PATCH] typos --- Dockerfile_standalone_channelPoints | 2 +- docker-compose.yaml | 4 ++-- makedockerimages.bat | 2 +- standalone_discord_script.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile_standalone_channelPoints b/Dockerfile_standalone_channelPoints index fae84ac..5c4e21d 100644 --- a/Dockerfile_standalone_channelPoints +++ b/Dockerfile_standalone_channelPoints @@ -8,4 +8,4 @@ RUN pip3 install -r requirements_sa_command.txt COPY . . -CMD [ "python3", "standalone_channelPoints.py"] \ No newline at end of file +CMD [ "python3", "standalone_channelpoints.py"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 6481868..d378b8b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,8 +6,8 @@ services: - 6009:6009 environment: - ISDOCKER=cat - standalone_channelPoints: - image: standalone_channelPoints + standalone_channelpoints: + image: standalone_channelpoints ports: - 6969:6969 environment: diff --git a/makedockerimages.bat b/makedockerimages.bat index a3fbca1..8e66509 100644 --- a/makedockerimages.bat +++ b/makedockerimages.bat @@ -1,5 +1,5 @@ docker build --file Dockerfile_standalone_command --tag standalone_command . -docker build --file Dockerfile_standalone_channelPoints --tag standalone_channelPoints . +docker build --file Dockerfile_standalone_channelpoints --tag standalone_channelpoints . docker build --file Dockerfile_standalone_DiscordScript --tag standalone_discordscript . docker build --file Dockerfile_standalone_TwitchScript --tag standalone_twitchscript . docker build --file Dockerfile_standalone_Twitch_Pubsub --tag standalone_twitch_pubsub . \ No newline at end of file diff --git a/standalone_discord_script.py b/standalone_discord_script.py index 291a9b8..8ece8a7 100644 --- a/standalone_discord_script.py +++ b/standalone_discord_script.py @@ -87,14 +87,14 @@ class Discord_Module(discord.Client): async def is_command(self, word: str) -> bool: # todo need to url-escape word clean_param = urlencode({'name': word}) - url = "http://standalone_command:5000/api/v1/command?%s" % clean_param + url = "http://standalone_command:6009/api/v1/command?%s" % clean_param resp = requests.get(url) return resp.status_code == 200 async def exec_command(self, realMessage: discord.Message, command: str, rest: str): # todo need to url-escape command and rest params = urlencode({'command_source': commands.command_base.AbstractCommand.CommandSource.Discord, 'user_name': realMessage.author.mention, 'command_name': command, 'rest': rest, 'bonus_data': realMessage}) - url = "http://standalone_command:5000/api/v1/exec?%s" % params + url = "http://standalone_command:6009/api/v1/exec?%s" % params resp = requests.get(url) if resp.status_code == 200: print("Got the following message: %s" % resp.text)