Compare commits
2 commits
5916dd1508
...
e5a5038ebb
Author | SHA1 | Date | |
---|---|---|---|
e5a5038ebb | |||
7c9652122b |
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
|
|
@ -130,6 +130,9 @@ def upvote(room, user, prefs):
|
|||
reply = prefix + "@" + user.username
|
||||
reply += " now has " + str(karma.karma) + " karma in this channel"
|
||||
send(room, reply)
|
||||
if karma.karma == 1000:
|
||||
reply = "@" + user.username + " has achieved enlightenment. 🌄🧘"
|
||||
send(room, reply)
|
||||
|
||||
def downvote(room, user, prefs):
|
||||
karma = Karma.query.filter(Karma.userid == user.id).one_or_none()
|
||||
|
|
Loading…
Reference in a new issue