diff --git a/k8s/tasks.yml b/k8s/tasks.yml index 8ee7d7f..344f2f5 100644 --- a/k8s/tasks.yml +++ b/k8s/tasks.yml @@ -19,21 +19,21 @@ spec: limits: memory: "1Gi" cpu: "1" - - name: expire - image: git.nyeki.dev/payphone/payphone-tasks:latest - command: ["uv", "run", "--no-dev", "tasks.py", "expire"] - envFrom: - - secretRef: - name: bot-secrets - - configMapRef: - name: bot-config - resources: - requests: - memory: "250Mi" - cpu: "100m" - limits: - memory: "1Gi" - cpu: "1" + # - name: expire + # image: git.nyeki.dev/payphone/payphone-tasks:latest + # command: ["uv", "run", "--no-dev", "tasks.py", "expire"] + # envFrom: + # - secretRef: + # name: bot-secrets + # - configMapRef: + # name: bot-config + # resources: + # requests: + # memory: "250Mi" + # cpu: "100m" + # limits: + # memory: "1Gi" + # cpu: "1" restartPolicy: Always imagePullSecrets: - name: regcred diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index d4aa2fd..96c2e13 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -435,7 +435,7 @@ class Calls(base.Cog): await webhook.edit_message(propagation_id, content=payload.data["content"]) - @commands.message_command(name="Report Message") + @commands.message_command(name="Report Message" if not constants.IS_DEBUG else "(Dev) Report Message") async def report_message( self, ctx: discord.ApplicationContext, message: discord.Message ) -> None: diff --git a/payphone/core/calls.py b/payphone/core/calls.py index 13e9a89..59ee729 100644 --- a/payphone/core/calls.py +++ b/payphone/core/calls.py @@ -391,6 +391,7 @@ class CallHandler: if last_message is not None: continue + pipe.hdel("calls:last-message", call_id) pipe.hdel("calls:channels:active", *channels) pipe.hdel("calls:calls:active", call_id) pipe.srem("calls:channels:searching", *channels) diff --git a/uv.lock b/uv.lock index 07d882f..b1ad6f1 100644 --- a/uv.lock +++ b/uv.lock @@ -353,7 +353,7 @@ wheels = [ [[package]] name = "payphone" -version = "0.19.0" +version = "0.20.0" source = { virtual = "." } dependencies = [ { name = "aerich" },