Compare commits

..

2 commits

Author SHA1 Message Date
e5a5038ebb added a path to enlightenment
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline failed
thrrgilag/partybot/pipeline/head There was a failure building this commit
2023-07-17 21:19:01 -07:00
7c9652122b update base container image to bookworm 2023-07-17 21:18:41 -07:00
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,4 @@
FROM python:3.10-slim-bullseye AS builder FROM python:3.11-slim-bookworm AS builder
RUN pip install --no-cache-dir --upgrade pip setuptools wheel RUN pip install --no-cache-dir --upgrade pip setuptools wheel
@ -10,7 +10,7 @@ RUN pip wheel . --wheel-dir /wheels --find-links /wheels
FROM python:3.10-slim-bullseye AS run FROM python:3.11-slim-bookworm AS run
COPY --from=builder /wheels /wheels COPY --from=builder /wheels /wheels

View file

@ -130,6 +130,9 @@ def upvote(room, user, prefs):
reply = prefix + "@" + user.username reply = prefix + "@" + user.username
reply += " now has " + str(karma.karma) + " karma in this channel" reply += " now has " + str(karma.karma) + " karma in this channel"
send(room, reply) send(room, reply)
if karma.karma == 1000:
reply = "@" + user.username + " has achieved enlightenment. 🌄🧘"
send(room, reply)
def downvote(room, user, prefs): def downvote(room, user, prefs):
karma = Karma.query.filter(Karma.userid == user.id).one_or_none() karma = Karma.query.filter(Karma.userid == user.id).one_or_none()