diff --git a/channelBot/Dockerfile b/channelBot/Dockerfile new file mode 100644 index 0000000..6b77235 --- /dev/null +++ b/channelBot/Dockerfile @@ -0,0 +1,16 @@ +FROM debian:bullseye + +WORKDIR /usr/src/app + +RUN apt-get update +RUN apt-get install -y python3-full +RUN apt-get install -y python3-pip +RUN apt-get install -y python-is-python3 +RUN apt-get clean && rm -rf /var/lib/apt/lists/* + +ADD requirements.txt ./ +RUN python3 -m pip install --no-cache-dir -r requirements.txt + +ADD main.py ./ + +CMD [ "python", "./main.py" ] diff --git a/channelBot/channelbot.tar b/channelBot/channelbot.tar new file mode 100644 index 0000000..a5ff548 Binary files /dev/null and b/channelBot/channelbot.tar differ diff --git a/channelBot/main.py b/channelBot/main.py index 7d7d263..b544386 100644 --- a/channelBot/main.py +++ b/channelBot/main.py @@ -7,7 +7,7 @@ intents = discord.Intents.all() client = commands.Bot(command_prefix="!", intents=intents) # settingsFile = 'settings.json' -settingsFile = '/home/ne_ju/pythonProjects/discord/channelBot/settings.json' +settingsFile = '/usr/src/app/channelBot/settings.json' try: settings = json.load(open(settingsFile, 'r')) diff --git a/channelBot/requirements.txt b/channelBot/requirements.txt new file mode 100644 index 0000000..f14c5c8 --- /dev/null +++ b/channelBot/requirements.txt @@ -0,0 +1 @@ +discord~=1.7.3 diff --git a/dasGlas/Dockerfile b/dasGlas/Dockerfile new file mode 100644 index 0000000..143c941 --- /dev/null +++ b/dasGlas/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:bullseye + +WORKDIR /usr/src/app + +RUN apt-get update +RUN apt-get install -y ffmpeg +RUN apt-get install -y python3-full +RUN apt-get install -y python3-pip +RUN apt-get install -y python-is-python3 +RUN apt-get clean && rm -rf /var/lib/apt/lists/* + +ADD requirements.txt ./ +RUN python3 -m pip install --no-cache-dir -r requirements.txt + +ADD main.py ./ + +CMD [ "python", "./main.py" ] diff --git a/dasGlas/dasGlas.tar b/dasGlas/dasGlas.tar new file mode 100644 index 0000000..2492e0c Binary files /dev/null and b/dasGlas/dasGlas.tar differ diff --git a/dasGlas/main.py b/dasGlas/main.py index 0d64e83..424b2b4 100644 --- a/dasGlas/main.py +++ b/dasGlas/main.py @@ -13,7 +13,7 @@ from discord.ext import tasks client = discord.Client(intents=discord.Intents.all()) -glas_json = Path('/home/ne_ju/pythonProjects/discord/dasGlas/glas.json') +glas_json = Path('/usr/src/app/dasGlas/glas.json') ch_coin = 'das-glas' ch_witz = 'witzigkeit-kennt-keine-grenzen' @@ -25,9 +25,9 @@ react_emo_money_with_wings = '\U0001F4B8' react_emo_moneybag = '\U0001F4B0' react_emo_smiling_face_with_tear = '\U0001f972' -snd_coin = '/home/ne_ju/pythonProjects/discord/dasGlas/coin.mp3' -snd_witz = '/home/ne_ju/pythonProjects/discord/dasGlas/kein_Pardon.mp3' -snd_test = '/home/ne_ju/pythonProjects/discord/dasGlas/test.mp3' +snd_coin = '/usr/src/app/dasGlas/coin.mp3' +snd_witz = '/usr/src/app/dasGlas/kein_Pardon.mp3' +snd_test = '/usr/src/app/dasGlas/test.mp3' # JSON überprüfen/erstellen--------------------------------------------------------------------------------