Name Fix
This commit is contained in:
parent
7ec8dd5e0e
commit
36705c8a86
@ -7,4 +7,4 @@ RUN pip3 install -r requirements.txt
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD [ "python3", "discord_script_standalone.py"]
|
CMD [ "python3", "standalone_discord_script.py"]
|
||||||
@ -7,4 +7,4 @@ RUN pip3 install -r requirements.txt
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD [ "python3", "twitch_script_standalone.py"]
|
CMD [ "python3", "standalone_twitch_script.py"]
|
||||||
@ -11,8 +11,8 @@ Run the following to enable these V2 modules without Docker. (After you install
|
|||||||
`pip install -r requirements.txt`</br>
|
`pip install -r requirements.txt`</br>
|
||||||
|
|
||||||
`python standalone_command.py`</br>
|
`python standalone_command.py`</br>
|
||||||
`python twitch_script_standalone.py`</br>
|
`python standalone_twitch_script.py`</br>
|
||||||
`python discord_script_standalone.py`</br>
|
`python standalone_discord_script.py`</br>
|
||||||
|
|
||||||
## Docker:
|
## Docker:
|
||||||
|
|
||||||
|
|||||||
@ -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/<filename>/')
|
|
||||||
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()
|
|
||||||
Loading…
Reference in New Issue
Block a user