A discord bot for teal.fm
discord tealfm music

use did instead of handle for source code url

besaid.zone f04c11b1 cea49dd9

verified
+4 -4
Dockerfile
··· 10 10 ARG BUILD_DATE 11 11 ARG SHA 12 12 ARG VERSION 13 - ARG ATPROTO_HANDLE 13 + ARG DID 14 14 15 15 FROM base AS build 16 16 COPY --chown=1000:1000 apps/bot /app ··· 37 37 EXPOSE 8002 38 38 CMD ["node", "dist/index.js"] 39 39 LABEL org.opencontainers.image.authors="Dane Miller 'me@dane.computer'" \ 40 - org.opencontainers.image.source="https://tangled.org/${ATPROTO_HANDLE}/tealfmbot" \ 40 + org.opencontainers.image.source="https://tangled.org/${DID}/tealfmbot" \ 41 41 org.opencontainers.image.title="discostuweb" \ 42 42 org.opencontainers.image.description="The web service for authentication for the disco stu discord bot" \ 43 43 org.opencontainers.image.version=$VERSION \ ··· 51 51 WORKDIR /prod/bot 52 52 CMD ["node", "dist/main.js"] 53 53 LABEL org.opencontainers.image.authors="Dane Miller 'me@dane.computer'" \ 54 - org.opencontainers.image.source="https://tangled.org/${ATPROTO_HANDLE}/tealfmbot" \ 54 + org.opencontainers.image.source="https://tangled.org/${DID}/tealfmbot" \ 55 55 org.opencontainers.image.title="discostubot" \ 56 56 org.opencontainers.image.description="A discord bot that displays your music listens based on your teal.fm records" \ 57 57 org.opencontainers.image.version=$VERSION \ ··· 65 65 WORKDIR /prod/tapper 66 66 CMD ["node", "dist/index.js"] 67 67 LABEL org.opencontainers.image.authors="Dane Miller 'me@dane.computer'" \ 68 - org.opencontainers.image.source="https://tangled.org/dane.is.extraordinarily.cool/tealfmbot" \ 68 + org.opencontainers.image.source="https://tangled.org/${DID}/tealfmbot" \ 69 69 org.opencontainers.image.title="discostutap" \ 70 70 org.opencontainers.image.description="The backfill and firehose listener for teal.fm records" \ 71 71 org.opencontainers.image.version=$VERSION \
+1 -2
apps/web/index.ts
··· 90 90 app.get("/login", async (c) => { 91 91 const session = await getSession(c, env); 92 92 if (session) { 93 - return c.redirect("/dashboard") 93 + return c.redirect("/dashboard"); 94 94 } 95 95 96 96 return c.html( ··· 102 102 </form> 103 103 `, 104 104 ); 105 - 106 105 }); 107 106 108 107 app.post(
+2 -2
build-and-publish-images.sh
··· 2 2 BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) 3 3 VERSION=$(git describe --tags --abbrev=0) 4 4 REGISTRY=atcr.io/besaid.zone 5 - ATPROTO_HANDLE=besaid.zone 5 + DID=did:plc:qttsv4e7pu2jl3ilanfgc3zn 6 6 7 7 services=( 8 8 web ··· 18 18 --target $svc \ 19 19 --build-arg VERSION=${VERSION#v} \ 20 20 --build-arg SHA=$SHA \ 21 - --build-arg ATPROTO_HANDLE=$ATPROTO_HANDLE \ 21 + --build-arg DID=$DID \ 22 22 --build-arg BUILD_DATE=$BUILD_DATE \ 23 23 --pull \ 24 24 --no-cache \