diff --git a/Dockerfile_standalone_DiscordScript b/Dockerfile_standalone_DiscordScript index c25b1f0..79b38c2 100644 --- a/Dockerfile_standalone_DiscordScript +++ b/Dockerfile_standalone_DiscordScript @@ -7,4 +7,4 @@ RUN pip3 install -r requirements.txt COPY . . -CMD [ "python3", "discord_script_standalone.py"] \ No newline at end of file +CMD [ "python3", "standalone_discord_script.py"] \ No newline at end of file diff --git a/Dockerfile_standalone_TwitchScript b/Dockerfile_standalone_TwitchScript index 02056ff..fdda522 100644 --- a/Dockerfile_standalone_TwitchScript +++ b/Dockerfile_standalone_TwitchScript @@ -7,4 +7,4 @@ RUN pip3 install -r requirements.txt COPY . . -CMD [ "python3", "twitch_script_standalone.py"] \ No newline at end of file +CMD [ "python3", "standalone_twitch_script.py"] \ No newline at end of file diff --git a/README.md b/README.md index a7204e2..e3541c5 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ Run the following to enable these V2 modules without Docker. (After you install `pip install -r requirements.txt`
`python standalone_command.py`
-`python twitch_script_standalone.py`
-`python discord_script_standalone.py`
+`python standalone_twitch_script.py`
+`python standalone_discord_script.py`
## Docker: diff --git a/discord_script_standalone.py b/standalone_discord_script.py similarity index 100% rename from discord_script_standalone.py rename to standalone_discord_script.py diff --git a/twitch_script_standalone.py b/standalone_twitch_script.py similarity index 100% rename from twitch_script_standalone.py rename to standalone_twitch_script.py diff --git a/webSource_module_standalone.py b/standalone_webSource.py similarity index 100% rename from webSource_module_standalone.py rename to standalone_webSource.py diff --git a/webSource_standalone.py b/webSource_standalone.py deleted file mode 100644 index 54a7dce..0000000 --- a/webSource_standalone.py +++ /dev/null @@ -1,65 +0,0 @@ -from enum import Enum -from os import F_OK -import tempText_Module -import time -import config as config -import db -import tts -import threading - -from flask import Flask - -import credentials - -import commands.loader as command_loader -from commands.command_base import AbstractCommand - -from cooldowns import Cooldown_Module - -import utilities_script as utility - -import chyron_module - -class webSource_Module(): - webSources:Flask = Flask('webSources') - - def __init__(self): - super().__init__() - self.dbCredential: credentials.DB_Credential - - def main(self, port_=5000): - print("starting up on port: ", port_) - self.webSources.run(host="0.0.0.0", port= port_) - - @webSources.route('/') - def hello_world(): - return 'I can see your Ghost!' - - @webSources.route('/chyron') - def textSource_chyron(): - tempModule = chyron_module.Chyron_Module() - return tempModule.getChyronFile() - - @webSources.route('/temptext//') - def textSource_tempText(filename): - print("trying file: ", filename) - tempModule = tempText_Module.tempText_Module() - return tempModule.getTempTextFile(filename) - - - -if __name__ == "__main__": - testModule = webSource_Module() - testModule_2 = webSource_Module() - threads = [] - - #credentials_manager = credentials.Credentials_Module() - #credentials_manager.load_credentials() - #testModule.dbCredential = credentials_manager.find_DB_Credential(config.credentialsNickname) - - thread_ = threading.Thread(target=testModule.main(port_=5000)) - threads.append(thread_) - thread_.start() - - for t in threads: - t.join() \ No newline at end of file