From 542c1a92614f0234206550987e27d7f1099e9147 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 14 Mar 2022 17:20:39 +0100 Subject: [PATCH 1/4] switch baseimage to python:alpine --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0fe06c5..59f4c77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:slim +FROM python:alpine WORKDIR ./ ARG PUID=1000 From 8db08e8e16fd562c517c953ef58fd3e48d688ebc Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 14 Mar 2022 17:26:59 +0100 Subject: [PATCH 2/4] fix adduser command --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 59f4c77..8c69a93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,11 @@ FROM python:alpine WORKDIR ./ ARG PUID=1000 +ENV GROUP dockergroup ENV USER docker ENV HOMEDIR "/home/${USER}" -RUN useradd -u "${PUID}" -m "${USER}" +RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}" USER ${USER} WORKDIR ${HOMEDIR} COPY . . From 343024f52393142d93f6c810f730562e47e105cc Mon Sep 17 00:00:00 2001 From: aaron Date: Thu, 31 Mar 2022 18:58:39 +0200 Subject: [PATCH 3/4] mein Bier brennt --- bot.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot.py b/bot.py index 5f62157..786ce9d 100644 --- a/bot.py +++ b/bot.py @@ -73,6 +73,13 @@ async def on_command_error(ctx, error): async def on_ready(): print("Bot ready on Version %s..." % discord.__version__) +@bot.event +async def on_message(message): + if message.author.id == 274197471515639808: + await message.add_reaction(bot.get_emoji(844264772110909501)) + if message.author.id == 252179888969089024: + await message.add_reaction(bot.get_emoji(844264772110909501)) + class Confirm(discord.ui.View): def __init__(self): super().__init__() From b7678028e7224103d40fbfb08759f0dd360f544d Mon Sep 17 00:00:00 2001 From: aaron Date: Thu, 31 Mar 2022 18:59:15 +0200 Subject: [PATCH 4/4] mein Bier brennt only for Bergseppel --- bot.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bot.py b/bot.py index 786ce9d..10f6f8b 100644 --- a/bot.py +++ b/bot.py @@ -77,8 +77,6 @@ async def on_ready(): async def on_message(message): if message.author.id == 274197471515639808: await message.add_reaction(bot.get_emoji(844264772110909501)) - if message.author.id == 252179888969089024: - await message.add_reaction(bot.get_emoji(844264772110909501)) class Confirm(discord.ui.View): def __init__(self):