Compare commits

...
Sign in to create a new pull request.
Author SHA1 Message Date
54041297e6 Update dependency greenlet to v3.5.5 2026-08-10 20:39:49 +02:00
03c11b4462 Update dependency typing-inspection to v0.4.3 2026-08-10 09:47:35 +00:00
2933b3bba0 Update dependency starlette to v1.6.0 2026-08-08 21:34:13 +02:00
9625b1be62 Update dependency pg to v8.23.0 2026-08-08 19:33:41 +00:00
d4d6fd3d07 update domain 2026-08-08 21:17:43 +02:00
432931aab2 Update dependency starlette to v1.5.0 2026-08-08 13:20:07 +00:00
c696d306aa Update dependency pydantic-settings to v2.15.0 2026-08-07 09:47:49 +00:00
b299191514
feat: add team colours & battleResultRate to boss response 2026-08-06 09:03:52 +02:00
2b4e9ae7c0 Update dependency starlette to v1.4.1 2026-08-05 15:47:39 +00:00
a3571f971d Update dependency tweepy to v4.17.0 2026-08-05 12:33:23 +00:00
0cecc52a55 Update dependency fastapi to v0.141.1 2026-08-05 12:18:27 +00:00
d81f451963 Update dependency tzdata to v2026.3 2026-08-05 14:15:09 +02:00
014e59b234 Update dependency discord.js to v14.27.0 2026-08-05 14:14:58 +02:00
4e5d08b7fc Update dependency typing-extensions to v4.16.0 2026-08-05 14:14:43 +02:00
ddfacaf4a5 Update dependency cryptography to v50 2026-08-05 14:14:23 +02:00
702abc832d Update dependency uvicorn to v0.52.1 2026-08-05 14:14:20 +02:00
a90061f692 Update dependency starlette to v1.4.0 2026-08-05 09:48:00 +00:00
ad0cf39647 Update dependency charset-normalizer to v3.4.9 2026-08-05 04:19:07 +02:00
86792bc48e Update dependency certifi to v2026.7.22 2026-08-05 04:19:00 +02:00
8097e6f278 Update dependency express-rate-limit to v8.6.2 2026-08-05 02:03:26 +00:00
e37aa0dc37 Update dependency annotated-doc to v0.0.5 2026-08-05 00:18:20 +00:00
d42f74c81c Update actions/checkout action to v7 2026-08-05 02:06:06 +02:00
0b7b272117 Update dependency axios to v1.19.0 2026-08-05 02:06:00 +02:00
6f3bb98524 Update dependency click to v8.4.2 2026-08-05 02:05:55 +02:00
17682b74d1 Update dependency greenlet to v3.5.4 2026-08-05 02:05:48 +02:00
2293547d97 Update dependency pydantic-settings to v2.14.2 2026-08-05 02:05:31 +02:00
ac59d976da Update dependency cffi to v2.1.1 2026-08-05 02:05:22 +02:00
8d9909a9ed Update dependency pg to v8.22.0 2026-07-18 02:18:24 +00:00
8b532e831e
fix: improve XML parsing 2026-07-18 04:02:05 +02:00
3065a4d51e
chore: fix coc 2026-07-09 23:11:32 +02:00
cf9a05855f
fix: a rly bad oopsie (untested) 2026-07-09 23:07:16 +02:00
aa5e9e5be0
chore: add .venv 2026-07-09 23:01:38 +02:00
09a2f6f69d revert 3fe3913aa2
revert fix: accept submissions if validation failed
2026-07-07 09:27:13 +02:00
7f187bdad9 Update dependency anyio to v4.14.1 2026-07-06 18:28:19 +02:00
35a6c0db78 feat: add /leaderboard/getplayerstats/pid?mode (#65)
Adds the ability to grab a players stats by pid without them being on the leaderboard. Untested changes.

Reviewed-on: #65
2026-07-02 09:13:15 +02:00
c4fe4f1bf1 fix: add missing function
Some checks failed
backend / docker (push) Failing after 10s
2026-06-23 06:50:34 +02:00
ca8090d20d update more routes
Some checks failed
backend / docker (push) Failing after 10s
2026-06-21 23:40:21 +02:00
0b5e56b69b rewrite for new account oauth
Some checks failed
backend / docker (push) Failing after 10s
2026-06-21 23:37:29 +02:00
c89806fe87 revert 75dca3509e
Some checks failed
backend / docker (push) Failing after 10s
revert fix this bullshit finally
2026-06-19 04:57:10 +02:00
13afb709c5 revert 2d703c78b3
Some checks failed
backend / docker (push) Failing after 2s
revert fix: forgot this isn't GitHub
2026-06-19 04:56:59 +02:00
2d703c78b3 fix: forgot this isn't GitHub
Some checks failed
backend / docker (push) Failing after 29s
2026-06-18 05:22:06 +02:00
75dca3509e fix this bullshit finally
Some checks failed
backend / docker (push) Failing after 1s
2026-06-18 05:18:58 +02:00
2f59f2f315 Update dependency joi to v18.2.3
Some checks failed
backend / docker (push) Failing after 10s
2026-06-17 21:41:35 +02:00
e12611b812 Update dependency greenlet to v3.5.2
Some checks failed
backend / docker (push) Failing after 11s
2026-06-17 21:41:20 +02:00
e013c5930f Update dependency certifi to v2026.6.17
Some checks failed
backend / docker (push) Has been cancelled
2026-06-17 10:48:51 +00:00
269f9f4058 Update dependency anyio to v4.14.0
All checks were successful
backend / docker (push) Successful in 3m16s
2026-06-15 22:04:03 +00:00
40fce749ba chore: disable auto merge
All checks were successful
backend / docker (push) Successful in 3m3s
2026-06-15 20:25:06 +02:00
c4b503c208 Update dependency sqlalchemy to v2.0.51
All checks were successful
backend / docker (push) Successful in 3m38s
2026-06-15 15:55:56 +00:00
d650edd883 Update dependency multer to v2.2.0
All checks were successful
backend / docker (push) Successful in 3m4s
2026-06-15 12:24:49 +00:00
313dfa3cec Update dependency fastapi to v0.137.1
All checks were successful
backend / docker (push) Successful in 3m3s
2026-06-15 11:55:28 +00:00
3954801823 Update dependency axios to v1.18.0
All checks were successful
backend / docker (push) Successful in 2m59s
2026-06-14 18:09:03 +00:00
2ac86b3fc6 Update dependency fastapi to v0.137.0
All checks were successful
backend / docker (push) Successful in 3m9s
2026-06-14 13:08:39 +00:00
fdfde0fb3d Update dependency cryptography to v49
All checks were successful
backend / docker (push) Successful in 3m26s
2026-06-12 20:22:20 +00:00
ceeed0dade Update dependency starlette to v1.3.1
All checks were successful
backend / docker (push) Successful in 2m59s
2026-06-12 09:35:42 +00:00
aaef1e7ecd Update dependency starlette to v1.3.0
All checks were successful
backend / docker (push) Successful in 3m11s
2026-06-11 14:43:58 +00:00
d776c11555 Update dependency cryptography to v48.0.1
All checks were successful
backend / docker (push) Successful in 3m15s
2026-06-09 22:40:37 +00:00
53c9ce2653 Merge pull request 'Update dependency python-multipart to v0.0.32' (#41) from renovate/python-multipart-0.x into main
All checks were successful
backend / docker (push) Successful in 2m46s
2026-06-04 18:50:43 +02:00
39f0ff2bf9 Update dependency python-multipart to v0.0.32
All checks were successful
backend / docker (push) Successful in 2m50s
2026-06-04 16:47:45 +00:00
9d778f39a7 Merge pull request 'Update dependency python-multipart to v0.0.31' (#40) from renovate/python-multipart-0.x into main
All checks were successful
backend / docker (push) Successful in 2m44s
2026-06-04 11:06:40 +02:00
1dfa7bccf2 Update dependency python-multipart to v0.0.31
All checks were successful
backend / docker (push) Successful in 2m53s
2026-06-04 09:03:41 +00:00
54ceec85fb Merge pull request 'Update dependency uvicorn to v0.49.0' (#39) from renovate/uvicorn-0.x into main
Some checks failed
backend / docker (push) Failing after 42s
2026-06-04 00:15:05 +02:00
d6c4ddac44 Update dependency uvicorn to v0.49.0
All checks were successful
backend / docker (push) Successful in 2m51s
2026-06-03 22:12:09 +00:00
ffe66d1377 Merge pull request 'Update dependency idna to v3.18' (#38) from renovate/idna-3.x into main
Some checks failed
backend / docker (push) Failing after 18s
2026-06-03 14:33:10 +02:00
cbaa1fa941 Update dependency idna to v3.18
All checks were successful
backend / docker (push) Successful in 3m10s
2026-06-03 12:18:34 +00:00
0d91d6a566 Merge pull request 'Update dependency axios to v1.17.0' (#37) from renovate/axios-1.x-lockfile into main
Some checks failed
backend / docker (push) Failing after 1m6s
2026-06-03 14:18:18 +02:00
c410aa4074 Update dependency axios to v1.17.0
All checks were successful
backend / docker (push) Successful in 3m57s
2026-06-03 12:03:47 +00:00
kittentm
f42880bec2 revert d885899baf
Some checks failed
backend / docker (push) Failing after 11s
revert ci doesnt run in containers
2026-06-03 13:52:34 +02:00
kittentm
95a022d479 revert 65d2c9dc20
Some checks failed
backend / docker (push) Failing after 13s
revert wtf is going on with forgejo rn
2026-06-03 13:52:09 +02:00
kittentm
a4ebf2f106 revert 889db3abab
Some checks failed
backend / docker (push) Has been cancelled
revert consolidate steps
2026-06-03 13:51:57 +02:00
kittentm
bfe7f02099 revert d5819ceec6
Some checks failed
backend / docker (push) Has been cancelled
revert Update .forgejo/workflows/build.yml
2026-06-03 13:51:46 +02:00
kittentm
78c1c709fb revert 41b0c3297e
Some checks failed
backend / docker (push) Has been cancelled
revert yo forgejo pmo rn
2026-06-03 13:51:20 +02:00
41b0c3297e yo forgejo pmo rn
All checks were successful
backend / splatnet (push) Successful in 2m27s
2026-06-03 09:12:54 +02:00
d5819ceec6 Update .forgejo/workflows/build.yml
Some checks failed
backend / docker (push) Failing after 8s
2026-06-03 09:10:54 +02:00
889db3abab consolidate steps
Some checks failed
backend / docker (push) Failing after 5s
2026-06-03 09:10:09 +02:00
65d2c9dc20 wtf is going on with forgejo rn
Some checks failed
backend / docker (push) Failing after 23s
2026-06-03 09:08:28 +02:00
d916aaece5 Merge pull request 'chore(deps): update dependency morgan to v1.11.0' (#35) from renovate/morgan-1.x-lockfile into main
Some checks failed
backend / docker (push) Has been cancelled
2026-06-03 09:05:34 +02:00
d885899baf ci doesnt run in containers
Some checks failed
backend / docker (push) Has been cancelled
2026-06-03 09:05:28 +02:00
ab469e203f chore(deps): update dependency morgan to v1.11.0
All checks were successful
backend / docker (push) Successful in 3m19s
2026-06-02 19:09:29 +00:00
458eddc65f Merge pull request 'fix(deps): update dependency python-multipart to v0.0.30' (#33) from renovate/python-multipart-0.x into main
Some checks failed
backend / docker (push) Failing after 20s
2026-05-31 21:28:37 +02:00
1e8ebd0f44 fix(deps): update dependency python-multipart to v0.0.30
All checks were successful
backend / docker (push) Successful in 2m59s
2026-05-31 19:25:33 +00:00
kittentm
3fe3913aa2 fix: accept submissions if validation failed
All checks were successful
backend / docker (push) Successful in 3m6s
2026-05-31 18:22:14 +02:00
kittentm
37f7399edb print errors when checking pid validity
Some checks failed
backend / docker (push) Failing after 19s
2026-05-31 17:12:57 +02:00
88e7a89f25 Merge pull request 'fix(deps): update dependency starlette to v1.2.1' (#32) from renovate/starlette-1.x into main
Some checks failed
backend / docker (push) Failing after 35s
2026-05-31 03:35:21 +02:00
027430953b fix(deps): update dependency starlette to v1.2.1
All checks were successful
backend / docker (push) Successful in 3m12s
2026-05-31 01:32:04 +00:00
5c23336fcf Merge pull request 'fix(deps): update dependency idna to v3.17' (#31) from renovate/idna-3.x into main
All checks were successful
backend / docker (push) Successful in 2m53s
2026-05-28 16:49:54 +02:00
8e528bc0d9 fix(deps): update dependency idna to v3.17
All checks were successful
backend / docker (push) Successful in 2m56s
2026-05-28 14:46:52 +00:00
ff8f5e29aa Merge pull request 'fix(deps): update dependency starlette to v1.2.0' (#30) from renovate/starlette-1.x into main
All checks were successful
backend / docker (push) Successful in 2m30s
2026-05-28 14:04:56 +02:00
ab391b8997 fix(deps): update dependency starlette to v1.2.0
All checks were successful
backend / docker (push) Successful in 3m5s
2026-05-28 12:01:47 +00:00
049d33ea47
feat: check whether fest exists & to skip ranking reset
All checks were successful
backend / docker (push) Successful in 3m4s
2026-05-25 21:40:48 +02:00
6e4fb00675 Merge pull request 'fix(deps): update dependency sqlalchemy to v2.0.50' (#29) from renovate/sqlalchemy-2.x into main
All checks were successful
backend / docker (push) Successful in 3m32s
2026-05-24 21:47:01 +02:00
4d7b3f9bae fix(deps): update dependency sqlalchemy to v2.0.50
All checks were successful
backend / docker (push) Successful in 3m2s
2026-05-24 19:43:54 +00:00
1f146fb558 Merge pull request 'fix(deps): update dependency uvicorn to v0.48.0' (#28) from renovate/uvicorn-0.x into main
All checks were successful
backend / docker (push) Successful in 2m41s
2026-05-24 14:39:03 +02:00
54c01fdc54 fix(deps): update dependency uvicorn to v0.48.0
All checks were successful
backend / docker (push) Successful in 2m56s
2026-05-24 12:36:02 +00:00
b5eab7ac9e Merge pull request 'fix(deps): update dependency fastapi to v0.136.3' (#27) from renovate/fastapi-0.x into main
All checks were successful
backend / docker (push) Successful in 2m34s
2026-05-23 20:58:59 +02:00
953754b537 fix(deps): update dependency fastapi to v0.136.3
All checks were successful
backend / docker (push) Successful in 3m8s
2026-05-23 18:55:47 +00:00
37af414473 Merge pull request 'fix(deps): update dependency starlette to v1.1.0' (#26) from renovate/starlette-1.x into main
All checks were successful
backend / docker (push) Successful in 3m0s
2026-05-23 19:13:18 +02:00
0f027550e6 fix(deps): update dependency starlette to v1.1.0
All checks were successful
backend / docker (push) Successful in 3m10s
2026-05-23 17:10:06 +00:00
ed9dedeef9 Merge pull request 'fix(deps): update dependency click to v8.4.1' (#25) from renovate/click-8.x into main
All checks were successful
backend / docker (push) Successful in 2m54s
2026-05-22 06:34:41 +02:00
69cbe960d7 fix(deps): update dependency click to v8.4.1
All checks were successful
backend / docker (push) Successful in 2m52s
2026-05-22 04:31:43 +00:00
d557e8c370 Merge pull request 'fix(deps): update dependency idna to v3.16' (#24) from renovate/idna-3.x into main
All checks were successful
backend / docker (push) Successful in 2m56s
2026-05-22 02:35:07 +02:00
6890e59809 fix(deps): update dependency idna to v3.16
All checks were successful
backend / docker (push) Successful in 3m1s
2026-05-22 00:32:03 +00:00
a43a555a34 Merge pull request 'fix(deps): update dependency starlette to v1.0.1' (#23) from renovate/starlette-1.x into main
All checks were successful
backend / docker (push) Successful in 2m47s
2026-05-22 00:05:35 +02:00
0b435e97be fix(deps): update dependency starlette to v1.0.1
All checks were successful
backend / docker (push) Successful in 2m59s
2026-05-21 22:02:30 +00:00
d554353008 Merge pull request 'chore(deps): update dependency pg to v8.21.0' (#20) from renovate/pg-8.x-lockfile into main
All checks were successful
backend / docker (push) Successful in 3m9s
2026-05-21 11:58:32 +02:00
8a41f1ae93 Merge pull request 'fix(deps): update dependency greenlet to v3.5.1' (#21) from renovate/greenlet-3.x into main
Some checks failed
backend / docker (push) Has been cancelled
2026-05-21 11:58:30 +02:00
6579f8add6 Merge pull request 'fix(deps): update dependency certifi to v2026.5.20' (#22) from renovate/certifi-2026.x into main
Some checks are pending
backend / docker (push) Waiting to run
2026-05-21 11:58:29 +02:00
658c2ea006 fix(deps): update dependency certifi to v2026.5.20
All checks were successful
backend / docker (push) Successful in 4m55s
2026-05-20 17:03:10 +00:00
e80add0c06 fix(deps): update dependency greenlet to v3.5.1
Some checks failed
backend / docker (push) Failing after 9s
2026-05-20 17:02:59 +00:00
903318754a chore(deps): update dependency pg to v8.21.0
Some checks failed
backend / docker (push) Failing after 40s
2026-05-18 12:02:09 +00:00
6c30bf69c3 Merge pull request 'fix(deps): update dependency python-multipart to v0.0.29' (#19) from renovate/python-multipart-0.x into main
All checks were successful
backend / docker (push) Successful in 20m13s
2026-05-17 19:48:38 +02:00
9b00783f38 Merge pull request 'fix(deps): update dependency click to v8.4.0' (#18) from renovate/click-8.x into main
Some checks failed
backend / docker (push) Has been cancelled
2026-05-17 19:48:35 +02:00
33a8f8c315 fix(deps): update dependency python-multipart to v0.0.29
All checks were successful
backend / docker (push) Successful in 20m13s
2026-05-17 17:46:46 +00:00
8caf832ba9 fix(deps): update dependency click to v8.4.0
All checks were successful
backend / docker (push) Successful in 20m49s
2026-05-17 01:01:39 +00:00
cbb3b4fdad Merge pull request 'fix(deps): update dependency requests to v2.34.2' (#17) from renovate/requests-2.x into main
All checks were successful
backend / docker (push) Successful in 2m27s
2026-05-14 21:52:46 +02:00
17a70cac80 fix(deps): update dependency requests to v2.34.2
All checks were successful
backend / docker (push) Successful in 2m46s
2026-05-14 19:49:56 +00:00
1aa6fc0371 Merge pull request 'fix(deps): update dependency uvicorn to v0.47.0' (#16) from renovate/uvicorn-0.x into main
All checks were successful
backend / docker (push) Successful in 2m31s
2026-05-14 20:38:08 +02:00
0fda25d76c fix(deps): update dependency uvicorn to v0.47.0
All checks were successful
backend / docker (push) Successful in 2m23s
2026-05-14 18:35:37 +00:00
38cd3603b9 Merge pull request 'chore(deps): update dependency express-rate-limit to v8.5.2' (#15) from renovate/express-rate-limit-8.x-lockfile into main
All checks were successful
backend / docker (push) Successful in 2m15s
2026-05-14 12:34:32 +02:00
c6efe237ed chore(deps): update dependency express-rate-limit to v8.5.2
All checks were successful
backend / docker (push) Successful in 2m24s
2026-05-14 10:32:02 +00:00
650741f7e6 Merge pull request 'fix(deps): update dependency requests to v2.34.1' (#14) from renovate/requests-2.x into main
All checks were successful
backend / docker (push) Successful in 3m4s
2026-05-13 21:40:11 +02:00
731e95feb5 fix(deps): update dependency requests to v2.34.1
All checks were successful
backend / docker (push) Successful in 2m59s
2026-05-13 19:37:05 +00:00
ab10f2e4e5 Merge pull request 'chore(deps): update dependency axios to v1.16.1' (#13) from renovate/axios-1.x-lockfile into main
All checks were successful
backend / docker (push) Successful in 2m24s
2026-05-13 18:37:21 +02:00
2adf1f58a0 chore(deps): update dependency axios to v1.16.1
All checks were successful
backend / docker (push) Successful in 2m42s
2026-05-13 16:34:34 +00:00
bd9502cf29 Merge pull request 'fix(deps): update dependency idna to v3.15' (#12) from renovate/idna-3.x into main
All checks were successful
backend / docker (push) Successful in 2m39s
2026-05-13 00:56:52 +02:00
57df5ce4cc fix(deps): update dependency idna to v3.15
All checks were successful
backend / docker (push) Successful in 4m36s
2026-05-12 22:52:10 +00:00
bb9b35e58c Merge pull request 'fix(deps): update dependency requests to v2.34.0' (#11) from renovate/requests-2.x into main
All checks were successful
backend / docker (push) Successful in 2m29s
2026-05-11 21:37:30 +02:00
c287dc0d84 fix(deps): update dependency requests to v2.34.0
All checks were successful
backend / docker (push) Successful in 2m36s
2026-05-11 19:34:49 +00:00
7c65fb4d31 Merge pull request 'fix(deps): update dependency idna to v3.14' (#10) from renovate/idna-3.x into main
All checks were successful
backend / docker (push) Successful in 2m39s
2026-05-10 23:06:46 +02:00
2da6d21979 fix(deps): update dependency idna to v3.14
All checks were successful
backend / docker (push) Successful in 2m49s
2026-05-10 21:03:52 +00:00
6e084400db Merge pull request 'fix(deps): update dependency python-multipart to v0.0.28' (#9) from renovate/python-multipart-0.x into main
All checks were successful
backend / docker (push) Successful in 2m40s
2026-05-10 13:23:16 +02:00
7e626a1503 fix(deps): update dependency python-multipart to v0.0.28
All checks were successful
backend / docker (push) Successful in 2m41s
2026-05-10 11:20:30 +00:00
kittentm
e105f4e0fa fix(deps): update dependency pydantic-core to v2.46.4
All checks were successful
backend / docker (push) Successful in 3m59s
2026-05-09 06:45:10 +02:00
Renovate Bot
a30f3eca46 fix(deps): update dependency pydantic to v2.13.4
Some checks failed
backend / docker (push) Has been cancelled
2026-05-09 06:43:24 +02:00
5b1bafea17 Merge pull request 'fix(deps): update dependency pydantic-settings to v2.14.1' (#8) from renovate/pydantic-settings-2.x into main
All checks were successful
backend / docker (push) Successful in 2m38s
2026-05-08 16:05:04 +02:00
15ed13086f fix(deps): update dependency pydantic-settings to v2.14.1
All checks were successful
backend / docker (push) Successful in 2m26s
2026-05-08 14:02:34 +00:00
02a14ce457 chore: update badges
All checks were successful
backend / docker (push) Successful in 2m12s
2026-05-08 05:53:46 +02:00
d80bf323ac ci: use variables so CI will pass on both mirrors
All checks were successful
backend / docker (push) Successful in 2m12s
2026-05-08 05:32:47 +02:00
66d4bc0771 actually checkout code
Some checks are pending
backend / docker (debian-bookworm) (push) Waiting to run
backend / docker (debian-trixie) (push) Successful in 2m26s
2026-05-08 00:55:42 +02:00
683057221c i forgot steps 💔
Some checks failed
backend / docker (debian-bookworm) (push) Waiting to run
backend / docker (debian-trixie) (push) Failing after 29s
2026-05-08 00:51:50 +02:00
0e082c65d2 i cant read
Some checks failed
build.yml / i cant read (push) Failing after 0s
2026-05-08 00:46:36 +02:00
Renovate Bot
cc30baa5f0 fix(deps): update dependency cryptography to v48
Some checks are pending
backend / docker (push) Waiting to run
2026-05-08 00:24:24 +02:00
Renovate Bot
5712238297 fix(deps): update dependency greenlet to v3.5.0
Some checks are pending
backend / docker (push) Waiting to run
2026-05-08 00:23:45 +02:00
581c950261 ci: use multiple deb vers (if possible)
Some checks are pending
backend / docker (push) Waiting to run
2026-05-08 00:19:12 +02:00
ccd63e713b Merge pull request 'fix(deps): update dependency urllib3 to v2.7.0' (#6) from renovate/urllib3-2.x into main
All checks were successful
backend / docker (push) Successful in 2m21s
2026-05-07 18:38:19 +02:00
e265b4e5cd fix(deps): update dependency urllib3 to v2.7.0
All checks were successful
backend / docker (push) Successful in 2m34s
2026-05-07 16:35:38 +00:00
995f85a6fa Merge pull request 'chore(deps): update dependency axios to v1.16.0' (#2) from renovate/axios-1.x-lockfile into main
Some checks are pending
backend / docker (push) Waiting to run
2026-05-07 13:56:51 +02:00
dfdca8fc2a Merge pull request 'chore(deps): update dependency express-rate-limit to v8.5.1' (#4) from renovate/express-rate-limit-8.x-lockfile into main
All checks were successful
backend / docker (push) Successful in 2m33s
2026-05-07 13:56:50 +02:00
4b3e128221 Merge pull request 'chore(deps): update dependency joi to v18.2.1' (#5) from renovate/hapijs-monorepo into main
Some checks are pending
backend / docker (push) Waiting to run
2026-05-07 13:56:49 +02:00
de640f00d6 Merge pull request 'chore(deps): update dependency discord.js to v14.26.4' (#1) from renovate/discord.js-14.x-lockfile into main
Some checks failed
backend / docker (push) Has been cancelled
2026-05-07 13:56:46 +02:00
b0c4af716a chore(deps): update dependency joi to v18.2.1
All checks were successful
backend / docker (push) Successful in 2m37s
2026-05-07 08:06:07 +00:00
27c93f6f5b chore(deps): update dependency express-rate-limit to v8.5.1
All checks were successful
backend / docker (push) Successful in 2m42s
2026-05-07 08:05:59 +00:00
cc27b1166f chore(deps): update dependency axios to v1.16.0
All checks were successful
backend / docker (push) Successful in 2m37s
2026-05-07 07:50:55 +00:00
91b77c034e chore(deps): update dependency discord.js to v14.26.4
All checks were successful
backend / docker (push) Successful in 2m28s
2026-05-07 07:50:46 +00:00
01063d489a
ci: change debian ver
All checks were successful
backend / docker (push) Successful in 4m10s
2026-05-07 09:34:33 +02:00
8a846c0880
migration(feat): add repo .md files
Some checks are pending
backend / docker (push) Waiting to run
2026-05-07 09:33:14 +02:00
22 changed files with 496 additions and 176 deletions

View file

@ -7,11 +7,11 @@ on:
jobs:
docker:
runs-on: debian-bookworm
runs-on: ${{ vars.RUNNER_LABEL }}
steps:
- name: checkout
uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v7
- name: install docker???
run: |
apt update && apt install wget cmake -y && \

3
.gitignore vendored
View file

@ -5,4 +5,5 @@ fes_boss.yaml
node_modules
build
splatnet_backend.egg-info
venv/*
venv/*
.venv/*

View file

@ -12,12 +12,14 @@
# SplatNet
[![Commits](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgit.crafterpika.cc%2Fapi%2Fv1%2Frepos%2Fkittentm%2Fsplatnet-backend%2Fcommits&query=%24.length&label=commits&style=for-the-badge&color=blue)](https://git.crafterpika.cc/kittentm/splatnet-backend/commits/branch/main)
![Last Commit](https://img.shields.io/gitea/last-commit/kittentm/splatnet-backend?gitea_url=https://git.crafterpika.cc&style=for-the-badge&color=blue)
[![Build Status](https://git.crafterpika.cc/kittentm/splatnet-backend/badges/workflows/build.yml/badge.svg?style=for-the-badge)](https://git.crafterpika.cc/kittentm/splatnet-backend/actions)
[![Languages](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgit.crafterpika.cc%2Fapi%2Fv1%2Frepos%2Fkittentm%2Fsplatnet-backend%2Flanguages&query=%24.*~&label=language&style=for-the-badge&color=yellow)](https://git.crafterpika.cc/kittentm/splatnet-backend)
[![Languages](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fgit.crafterpika.cc%2Fapi%2Fv1%2Frepos%2Fkittentm%2Fsplatnet-backend%2Flanguages&query=%24.*~&label=language&style=for-the-badge&color=blue)](https://git.crafterpika.cc/kittentm/splatnet-backend)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg?style=for-the-badge&logo=gnu&logoColor=white)](https://git.crafterpika.cc/kittentm/splatnet-backend/src/branch/main/LICENSE)
![L1 Service Status](https://img.shields.io/website?url=https%3A%2F%2Fsplatnet.spbr.net%2F&up_message=online&down_message=offline&style=for-the-badge&up_color=blue&down_color=red&label=Production+Instance)
![T1 Service Status](https://img.shields.io/website?url=https%3A%2F%2Fsplatoon.cubexmine.dev%2F&up_message=online&down_message=offline&style=for-the-badge&up_color=blue&down_color=red&label=Testing+Instance)
This is the backend for the [SplatNet](https://git.crafterpika.cc/kittentm/splatnet) Revival frontend. It is a combination of Python & JS.
This is the backend for the [SplatNet](https://git.crafterpika.cc/kittentm/splatnet) Revival frontend.
</div>

65
code_of_conduct.md Normal file
View file

@ -0,0 +1,65 @@
# Spacebar Network Code of Conduct
This repository adheres to the official Spacebar Network Code of Conduct ("COC.") These regulations extend to the entire Spacebar network, our official Discord community, and all Git repositories. By choosing to interact with our community, you are entering into a social contract designed to protect the integrity of the project and the well-being of its members.
> **Note:** If you wish to propose changes or simply view the COC, the primary residence and master copy of this Code of Conduct can be found [here](https://git.spbr.net/spacebar/policy).
If you intend to contribute code, participate in community discussions, or experience any element of the Spacebar ecosystem, you must strictly abide by the standards and expectations set forth in this Covenant. We believe that a healthy community is built on mutual respect and shared responsibility. Our goal is to foster a space that is welcoming, inclusive, and free from harassment for everyone, regardless of their background or level of experience. Failure to adhere to these principles may result in removal from the network, as we prioritize maintaining a safe and productive environment for all participants.
---
## Our Pledge
We pledge to make the Spacebar community welcoming, safe, and equitable for all.
We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant.
## Encouraged Behaviors
While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language.
With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:
1. Respecting the **purpose of our community**, our activities, and our ways of gathering.
2. Engaging **kindly and honestly** with others.
3. Respecting **different viewpoints** and experiences.
4. **Taking responsibility** for our actions and contributions.
5. Gracefully giving and accepting **constructive feedback**.
6. Committing to **repairing harm** when it occurs.
7. Behaving in other ways that promote and sustain the **well-being of our community**.
## Restricted Behaviors
We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.
1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.
3. **Stereotyping or discrimination.** Characterizing anyones personality or behavior on the basis of immutable identities or traits.
4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.
5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.
6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.
7. Behaving in other ways that **threaten the well-being** of our community.
### Other Restrictions
1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.
2. **Failing to credit sources.** Not properly crediting the sources of content you contribute. If you are found to be using SDK material, all of your content commited towards Spacebar will be removed. No exceptions.
3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.
4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.
5. **Discussion of Piracy, or anything relating.**
## Reporting an Issue
When an incident occurs, it is important to report it promptly. To report a possible violation, please contact the Spacebar Maintainers via contacting a SPFN or SPBR developer on the discord server found [here](https://discord.gg/grMSxZf).
Spacebar moderators take reports seriously and will respond in a timely manner. They will investigate all reports by reviewing logs, messages, or interviewing participants. We aim to keep enforcement actions transparent while prioritizing the safety and confidentiality of those involved.
---
## Attribution
This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).
Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)
For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources).

View file

@ -18,6 +18,7 @@ class Settings(BaseSettings):
twitter_client_id: str
twitter_client_secret: str
twitter_redirect_uri: str
account_client_secret: str
model_config = SettingsConfigDict(
env_file=[

261
judd/package-lock.json generated
View file

@ -68,9 +68,9 @@
}
},
"node_modules/@discordjs/rest": {
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.6.1.tgz",
"integrity": "sha512-wwQdgjeaoYFiaG+atbqx6aJDpqW7JHAo0HrQkBTbYzM3/PJ3GweQIpgElNcGZ26DCUOXMyawYd0YF7vtr+fZXg==",
"version": "2.6.3",
"resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.6.3.tgz",
"integrity": "sha512-wvOylxNYJkwKjctS/Mn5GP1w9r3/rzyH+ThD1JlAca6zEdlHs8QWBBUQJpU5Q+W6DoIj/Ljh1IPlZs7hTU+UAg==",
"license": "Apache-2.0",
"dependencies": {
"@discordjs/collection": "^2.1.1",
@ -78,10 +78,10 @@
"@sapphire/async-queue": "^1.5.3",
"@sapphire/snowflake": "^3.5.5",
"@vladfrangu/async_event_emitter": "^2.4.6",
"discord-api-types": "^0.38.40",
"discord-api-types": "^0.38.50",
"magic-bytes.js": "^1.13.0",
"tslib": "^2.6.3",
"undici": "6.24.1"
"undici": "^6.27.0"
},
"engines": {
"node": ">=18"
@ -102,16 +102,6 @@
"url": "https://github.com/discordjs/discord.js?sponsor"
}
},
"node_modules/@discordjs/rest/node_modules/@sapphire/snowflake": {
"version": "3.5.5",
"resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.5.5.tgz",
"integrity": "sha512-xzvBr1Q1c4lCe7i6sRnrofxeO1QTP/LKQ6A6qy0iB4x5yfiSfARMEQEghojzTNALDTcv8En04qYNIco9/K9eZQ==",
"license": "MIT",
"engines": {
"node": ">=v14.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@discordjs/util": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@discordjs/util/-/util-1.2.0.tgz",
@ -234,9 +224,9 @@
}
},
"node_modules/@sapphire/snowflake": {
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.5.3.tgz",
"integrity": "sha512-jjmJywLAFoWeBi1W7994zZyiNWPIiqRRNAmSERxyg93xRGzNYvGjlZ0gR6x0F4gPRi2+0O6S71kOZYyr3cxaIQ==",
"version": "3.5.5",
"resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.5.5.tgz",
"integrity": "sha512-xzvBr1Q1c4lCe7i6sRnrofxeO1QTP/LKQ6A6qy0iB4x5yfiSfARMEQEghojzTNALDTcv8En04qYNIco9/K9eZQ==",
"license": "MIT",
"engines": {
"node": ">=v14.0.0",
@ -336,6 +326,41 @@
"url": "https://opencollective.com/express"
}
},
"node_modules/agent-base": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
"integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
"license": "MIT",
"dependencies": {
"debug": "4"
},
"engines": {
"node": ">= 6.0.0"
}
},
"node_modules/agent-base/node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
"license": "MIT",
"dependencies": {
"ms": "^2.1.3"
},
"engines": {
"node": ">=6.0"
},
"peerDependenciesMeta": {
"supports-color": {
"optional": true
}
}
},
"node_modules/agent-base/node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"license": "MIT"
},
"node_modules/append-field": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz",
@ -349,13 +374,14 @@
"license": "MIT"
},
"node_modules/axios": {
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.15.2.tgz",
"integrity": "sha512-wLrXxPtcrPTsNlJmKjkPnNPK2Ihe0hn0wGSaTEiHRPxwjvJwT3hKmXF4dpqxmPO9SoNb2FsYXj/xEo0gHN+D5A==",
"version": "1.19.0",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.19.0.tgz",
"integrity": "sha512-ht/iuYZXEjFxLH/Hkezgd7m6JKlHHXEUSneaDz8uZe1Gj5QZtCnpyDsckvAiEnT89OEbCLmnte4R4sn7P0EKFw==",
"license": "MIT",
"dependencies": {
"follow-redirects": "^1.15.11",
"form-data": "^4.0.5",
"follow-redirects": "^1.16.0",
"form-data": "^4.0.6",
"https-proxy-agent": "^5.0.1",
"proxy-from-env": "^2.1.0"
}
},
@ -622,33 +648,33 @@
}
},
"node_modules/discord-api-types": {
"version": "0.38.47",
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.47.tgz",
"integrity": "sha512-XgXQodHQBAE6kfD7kMvVo30863iHX1LHSqNq6MGUTDwIFCCvHva13+rwxyxVXDqudyApMNAd32PGjgVETi5rjA==",
"version": "0.38.52",
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.52.tgz",
"integrity": "sha512-uwe9EKfbjsmgWc2fdFjvDbj+dQqx3lp7wqDCmIha0jInuU+xeQjkCK9tMMn+p7RXfdVQORCInq4cD3U2ymDmyg==",
"license": "MIT",
"workspaces": [
"scripts/actions/documentation"
]
},
"node_modules/discord.js": {
"version": "14.26.3",
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.26.3.tgz",
"integrity": "sha512-XEKtYn28YFsiJ5l4fLRyikdbo6RD5oFyqfVHQlvXz2104JhH/E8slN28dbky05w3DCrJcNVWvhVvcJCTSl/KIg==",
"version": "14.27.0",
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.27.0.tgz",
"integrity": "sha512-qHbFlFG2N7y3LjPySYsL6A1+BnX6bkTVgo842EX0CqVPk/KTMwZkojPHEXKsQUpWZNyz5BISNHK1cPpQw0+m4A==",
"license": "Apache-2.0",
"dependencies": {
"@discordjs/builders": "^1.14.1",
"@discordjs/collection": "1.5.3",
"@discordjs/formatters": "^0.6.2",
"@discordjs/rest": "^2.6.1",
"@discordjs/rest": "^2.6.2",
"@discordjs/util": "^1.2.0",
"@discordjs/ws": "^1.2.3",
"@sapphire/snowflake": "3.5.3",
"discord-api-types": "^0.38.40",
"@sapphire/snowflake": "3.5.5",
"discord-api-types": "^0.38.49",
"fast-deep-equal": "3.1.3",
"lodash.snakecase": "4.1.1",
"magic-bytes.js": "^1.13.0",
"tslib": "^2.6.3",
"undici": "6.24.1"
"undici": "^6.27.0"
},
"engines": {
"node": ">=18"
@ -797,12 +823,13 @@
}
},
"node_modules/express-rate-limit": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.3.2.tgz",
"integrity": "sha512-77VmFeJkO0/rvimEDuUC5H30oqUC4EyOhyGccfqoLebB0oiEYfM7nwPrsDsBL1gsTpwfzX8SFy2MT3TDyRq+bg==",
"version": "8.6.2",
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.6.2.tgz",
"integrity": "sha512-YH4ru+eOJxQABscKFfRCy9R7x9QFGdezclVMwwgFFndzS2Xnm0uo6B0ABZsLhcpeptGv2qvuJVWlQr9gQZoC3A==",
"license": "MIT",
"dependencies": {
"ip-address": "10.1.0"
"debug": "^4.4.3",
"ip-address": "^10.2.0"
},
"engines": {
"node": ">= 16"
@ -814,6 +841,29 @@
"express": ">= 4.11"
}
},
"node_modules/express-rate-limit/node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
"license": "MIT",
"dependencies": {
"ms": "^2.1.3"
},
"engines": {
"node": ">=6.0"
},
"peerDependenciesMeta": {
"supports-color": {
"optional": true
}
}
},
"node_modules/express-rate-limit/node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"license": "MIT"
},
"node_modules/express-subdomain": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/express-subdomain/-/express-subdomain-1.0.6.tgz",
@ -962,16 +1012,16 @@
}
},
"node_modules/form-data": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",
"integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz",
"integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==",
"license": "MIT",
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
"es-set-tostringtag": "^2.1.0",
"hasown": "^2.0.2",
"mime-types": "^2.1.12"
"hasown": "^2.0.4",
"mime-types": "^2.1.35"
},
"engines": {
"node": ">= 6"
@ -1081,9 +1131,9 @@
}
},
"node_modules/hasown": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz",
"integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==",
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
"integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
"license": "MIT",
"dependencies": {
"function-bind": "^1.1.2"
@ -1112,6 +1162,42 @@
"url": "https://opencollective.com/express"
}
},
"node_modules/https-proxy-agent": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
"integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
"license": "MIT",
"dependencies": {
"agent-base": "6",
"debug": "4"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/https-proxy-agent/node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
"license": "MIT",
"dependencies": {
"ms": "^2.1.3"
},
"engines": {
"node": ">=6.0"
},
"peerDependenciesMeta": {
"supports-color": {
"optional": true
}
}
},
"node_modules/https-proxy-agent/node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"license": "MIT"
},
"node_modules/iconv-lite": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
@ -1144,9 +1230,9 @@
"license": "ISC"
},
"node_modules/ip-address": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz",
"integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==",
"version": "10.2.0",
"resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.2.0.tgz",
"integrity": "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==",
"license": "MIT",
"engines": {
"node": ">= 12"
@ -1168,9 +1254,9 @@
"license": "MIT"
},
"node_modules/joi": {
"version": "18.1.2",
"resolved": "https://registry.npmjs.org/joi/-/joi-18.1.2.tgz",
"integrity": "sha512-rF5MAmps5esSlhCA+N1b6IYHDw9j/btzGaqfgie522jS02Ju/HXBxamlXVlKEHAxoMKQL77HWI8jlqWsFuekZA==",
"version": "18.2.3",
"resolved": "https://registry.npmjs.org/joi/-/joi-18.2.3.tgz",
"integrity": "sha512-N5A3KTWQpPWT4ExxxPlUx7WmykGXRzhNidWhV41d6Abu9YfI2NyWCJuxdPnslJCPWtbRpSVOWSnSS6GakLM/Rg==",
"license": "BSD-3-Clause",
"dependencies": {
"@hapi/address": "^5.1.1",
@ -1276,31 +1362,23 @@
}
},
"node_modules/morgan": {
"version": "1.10.1",
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz",
"integrity": "sha512-223dMRJtI/l25dJKWpgij2cMtywuG/WiUKXdvwfbhGKBhy1puASqXwFzmWZ7+K73vUPoR7SS2Qz2cI/g9MKw0A==",
"version": "1.11.0",
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.11.0.tgz",
"integrity": "sha512-zSkVu3t18r39pw4ixfBKvfZi3y2UOqr7d4WYwcj3m8nXpEQK4rPO6GLzs/CExoRgmX3y9EjmmcXqv6jq0SK46g==",
"license": "MIT",
"dependencies": {
"basic-auth": "~2.0.1",
"debug": "2.6.9",
"depd": "~2.0.0",
"on-finished": "~2.3.0",
"on-finished": "~2.4.1",
"on-headers": "~1.1.0"
},
"engines": {
"node": ">= 0.8.0"
}
},
"node_modules/morgan/node_modules/on-finished": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
"integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==",
"license": "MIT",
"dependencies": {
"ee-first": "1.1.1"
},
"engines": {
"node": ">= 0.8"
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/ms": {
@ -1310,9 +1388,9 @@
"license": "MIT"
},
"node_modules/multer": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/multer/-/multer-2.1.1.tgz",
"integrity": "sha512-mo+QTzKlx8R7E5ylSXxWzGoXoZbOsRMpyitcht8By2KHvMbf3tjwosZ/Mu/XYU6UuJ3VZnODIrak5ZrPiPyB6A==",
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/multer/-/multer-2.2.0.tgz",
"integrity": "sha512-6rdyFg2kLrMh9Jee7/BMPuV9lEAd7lLW2YUpF9/YxR7njyoUwwQ0ZPh3TaIY50Sw6vlyD2HW3wGOkTS4P79xrQ==",
"license": "MIT",
"dependencies": {
"append-field": "^1.0.0",
@ -1399,15 +1477,14 @@
}
},
"node_modules/pg": {
"version": "8.20.0",
"resolved": "https://registry.npmjs.org/pg/-/pg-8.20.0.tgz",
"integrity": "sha512-ldhMxz2r8fl/6QkXnBD3CR9/xg694oT6DZQ2s6c/RI28OjtSOpxnPrUCGOBJ46RCUxcWdx3p6kw/xnDHjKvaRA==",
"version": "8.23.0",
"resolved": "https://registry.npmjs.org/pg/-/pg-8.23.0.tgz",
"integrity": "sha512-Ip2EQCngowJLGOfCwkFhPXU7/ljlhn6Rxlmy4XYfL2Y+vyRM59+8uR2xqRWKdYmbXmxCFOAmKxBuSUCdF34qLg==",
"license": "MIT",
"peer": true,
"dependencies": {
"pg-connection-string": "^2.12.0",
"pg-pool": "^3.13.0",
"pg-protocol": "^1.13.0",
"pg-connection-string": "^2.14.0",
"pg-pool": "^3.14.0",
"pg-protocol": "^1.16.0",
"pg-types": "2.2.0",
"pgpass": "1.0.5"
},
@ -1415,7 +1492,7 @@
"node": ">= 16.0.0"
},
"optionalDependencies": {
"pg-cloudflare": "^1.3.0"
"pg-cloudflare": "^1.4.0"
},
"peerDependencies": {
"pg-native": ">=3.0.1"
@ -1427,16 +1504,16 @@
}
},
"node_modules/pg-cloudflare": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.3.0.tgz",
"integrity": "sha512-6lswVVSztmHiRtD6I8hw4qP/nDm1EJbKMRhf3HCYaqud7frGysPv7FYJ5noZQdhQtN2xJnimfMtvQq21pdbzyQ==",
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.4.0.tgz",
"integrity": "sha512-Vo7z/6rrQYxpNRylp4Tlob2elzbh+N/MOQbxFVWCxS7oEx6jF53GTJFxK2WWpKuBRkmiin4Mt+xofFDjx09R0A==",
"license": "MIT",
"optional": true
},
"node_modules/pg-connection-string": {
"version": "2.12.0",
"resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.12.0.tgz",
"integrity": "sha512-U7qg+bpswf3Cs5xLzRqbXbQl85ng0mfSV/J0nnA31MCLgvEaAo7CIhmeyrmJpOr7o+zm0rXK+hNnT5l9RHkCkQ==",
"version": "2.14.0",
"resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.14.0.tgz",
"integrity": "sha512-XwWDGcLRGCXAR8F/AM5bG7Q+A3Wm2s6QeEjlOKZLlH3UYcguiqCWKyWXVag5TLTIjR7oOJUY8kcADaZgWPyLeg==",
"license": "MIT"
},
"node_modules/pg-hstore": {
@ -1461,18 +1538,18 @@
}
},
"node_modules/pg-pool": {
"version": "3.13.0",
"resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.13.0.tgz",
"integrity": "sha512-gB+R+Xud1gLFuRD/QgOIgGOBE2KCQPaPwkzBBGC9oG69pHTkhQeIuejVIk3/cnDyX39av2AxomQiyPT13WKHQA==",
"version": "3.14.0",
"resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.14.0.tgz",
"integrity": "sha512-gKtPkFdQPU3DksooVLi9LsjZxrsBUZIpa+7aVx+LV5pNh0KzP4Zleud2po+ConrxbuXGBJ6Hfer6hdgpIBpBaw==",
"license": "MIT",
"peerDependencies": {
"pg": ">=8.0"
}
},
"node_modules/pg-protocol": {
"version": "1.13.0",
"resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.13.0.tgz",
"integrity": "sha512-zzdvXfS6v89r6v7OcFCHfHlyG/wvry1ALxZo4LqgUoy7W9xhBDMaqOuMiF3qEV45VqsN6rdlcehHrfDtlCPc8w==",
"version": "1.16.0",
"resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.16.0.tgz",
"integrity": "sha512-sILXutLVjCLjcDuOmvhX5e2Z4cS5qG/6Bu3VkpFwdf/633ElGLpEh9bgmuI5I4sqKqkifQiGyiCcx1HdtrK7tg==",
"license": "MIT"
},
"node_modules/pg-types": {
@ -2050,9 +2127,9 @@
"license": "MIT"
},
"node_modules/undici": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.24.1.tgz",
"integrity": "sha512-sC+b0tB1whOCzbtlx20fx3WgCXwkW627p4EA9uM+/tNNPkSS+eSEld6pAs9nDv7WbY1UUljBMYPtu9BCOrCWKA==",
"version": "6.28.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.28.0.tgz",
"integrity": "sha512-LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==",
"license": "MIT",
"engines": {
"node": ">=18.17"

View file

@ -34,11 +34,12 @@ router.post('/post', postLimiter, async (request, response, next) => {
try {
let isPidValid = true;
try {
const spfnCheck = await axios.get(`https://account.spfn.net/api/v2/users/${pid}/mii`);
const spfnCheck = await axios.get(`https://account.spbr.net/api/v2/users/${pid}/mii`);
if (typeof spfnCheck.data === 'string' && spfnCheck.data.includes('<code>0008</code>')) {
isPidValid = false;
}
} catch (err) {
console.error(`Caught error when validating ${pid}:`, err.message || err);
isPidValid = false;
}
@ -115,4 +116,4 @@ router.post('/post', postLimiter, async (request, response, next) => {
return response.send('success');
});
module.exports = router;
module.exports = router;

View file

@ -19,7 +19,7 @@ module.exports = {
if (parseInt(data.SessionID) > MAX_INT32) sanitizedData.SessionID = 0;
const result = await SplatfestResult.create(sanitizedData);
const result = await SplatfestResult.create(sanitizedData, { ordering: false, ignoreDuplicates: false });
await Equipment.upsert({
PId: sanitizedData.PId,

83
main.py
View file

@ -14,11 +14,13 @@ from routes.equipment import equipment_history
from routes.equipment import equipment
from services.boss_retrieval import process_boss_file
from routes import Ranking
from routes import ranking_grabstats
from routes import twitter_link
from contextlib import asynccontextmanager
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone
from sqlalchemy import delete
from config import BASE_DIR
import yaml
import asyncio
import subprocess
import signal
@ -31,6 +33,7 @@ JUDD_SERVER_JS = os.path.join(JUDD_CWD, "server.js")
JUDD_CMD = ["node", JUDD_SERVER_JS]
judd_process = None
skip_upcoming_reset = False
async def boss_worker_loop():
print("background worker started")
@ -43,30 +46,79 @@ async def boss_worker_loop():
await asyncio.sleep(3600)
async def weekly_rank_reset_loop():
global skip_upcoming_reset
print("weekly_rank_reset worker started")
while True:
now = datetime.now()
days_ahead = 6 - now.weekday()
FES_BOSS_PATH = os.path.join(BASE_DIR, "fes_boss.yaml")
def get_next_sunday_reset_time_utc():
now_utc = datetime.now(timezone.utc)
days_ahead = 6 - now_utc.weekday()
if days_ahead <= 0:
days_ahead += 7
next_sunday_utc = now_utc + timedelta(days=days_ahead)
return next_sunday_utc.replace(hour=0, minute=0, second=0, microsecond=0)
async def check_splatfest_schedule_loop():
global skip_upcoming_reset
while True:
try:
target_reset_utc = get_next_sunday_reset_time_utc()
print(f"checking if a splatfest will be active at: {target_reset_utc.isoformat()}")
if os.path.exists(FES_BOSS_PATH):
with open(FES_BOSS_PATH, "r", encoding="utf-8") as f:
fes_data = yaml.safe_load(f)
if fes_data and "Time" in fes_data:
start_time = datetime.fromisoformat(fes_data["Time"]["Start"])
end_time = datetime.fromisoformat(fes_data["Time"]["End"])
start_time_utc = start_time.astimezone(timezone.utc)
end_time_utc = end_time.astimezone(timezone.utc)
print(f"detected splatfest schedule: {start_time_utc.isoformat()} to {end_time_utc.isoformat()}")
if start_time_utc <= target_reset_utc <= end_time_utc:
skip_upcoming_reset = True
print("Splatfest detected in reset window")
else:
skip_upcoming_reset = False
print("No splatfest active in reset window, yay!!!")
else:
print("could not find yaml, defaulted to no fest")
skip_upcoming_reset = False
except Exception as e:
print(f"failed to check fest schedule: {e}")
next_sunday = now + timedelta(days=days_ahead)
next_run = next_sunday.replace(hour=0, minute=0, second=0, microsecond=0)
await asyncio.sleep(7200)
asyncio.create_task(check_splatfest_schedule_loop())
while True:
now_utc = datetime.now(timezone.utc)
next_run_utc = get_next_sunday_reset_time_utc()
wait_seconds = (next_run_utc - now_utc).total_seconds()
wait_seconds = (next_run - now).total_seconds()
print(f"Next ranking reset scheduled for: {next_run} (in {wait_seconds:.0f} seconds)")
print(f"Next ranking reset scheduled for: {next_run_utc.isoformat()} (in {wait_seconds:.0f} seconds)")
try:
await asyncio.sleep(wait_seconds)
print("Executing weekly ranking reset...")
with SessionLocal() as db:
db.execute(delete(PlayerRank))
db.commit()
print("Ranking table cleared successfully.")
await FastAPICache.clear()
print("Cache cleared")
print("ranking reset triggerred!")
if skip_upcoming_reset:
print("Reset skipped due to active splatfest")
else:
print("Executing weekly ranking reset...")
with SessionLocal() as db:
db.execute(delete(PlayerRank))
db.commit()
print("Ranking table cleared successfully.")
await FastAPICache.clear()
print("Cache cleared")
await asyncio.sleep(60)
except asyncio.CancelledError:
@ -136,6 +188,7 @@ app.include_router(equipment_history.router, prefix="/api/v1")
app.include_router(equipment.router, prefix="/api/v1")
app.include_router(Ranking.router, prefix="/api/v1")
app.include_router(twitter_link.router, prefix="/api/v1")
app.include_router(ranking_grabstats.router, prefix="/api/v1")
def start():
uvicorn.run("main:app", host="0.0.0.0", port=settings.port, reload=False)

View file

@ -5,47 +5,47 @@ description = "Backend for SplatNet"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"annotated-doc==0.0.4",
"annotated-doc==0.0.5",
"annotated-types==0.7.0",
"anyio==4.13.0",
"anyio==4.14.1",
"argon2-cffi==25.1.0",
"argon2-cffi-bindings==25.1.0",
"certifi==2026.4.22",
"cffi==2.0.0",
"charset-normalizer==3.4.7",
"click==8.3.3",
"certifi==2026.7.22",
"cffi==2.1.1",
"charset-normalizer==3.4.9",
"click==8.4.2",
"colorama==0.4.6",
"cryptography==46.0.7",
"fastapi==0.136.1",
"cryptography==50.0.0",
"fastapi==0.141.1",
"fastapi-cache2==0.2.2",
"greenlet==3.4.0",
"greenlet==3.5.5",
"h11==0.16.0",
"httpcore==1.0.9",
"httpx==0.28.1",
"idna==3.13",
"idna==3.18",
"oauthlib==3.3.1",
"oead==1.2.9.post4",
"pendulum==3.2.0",
"psycopg2-binary==2.9.12",
"pycparser==3.0",
"pydantic==2.13.3",
"pydantic-core==2.46.3",
"pydantic-settings==2.14.0",
"pydantic==2.13.4",
"pydantic-core==2.46.4",
"pydantic-settings==2.15.0",
"python-dateutil==2.9.0.post0",
"python-dotenv==1.2.2",
"python-multipart==0.0.27",
"python-multipart==0.0.32",
"pyyaml==6.0.3",
"requests==2.33.1",
"requests==2.34.2",
"requests-oauthlib==2.0.0",
"six==1.17.0",
"sqlalchemy==2.0.49",
"starlette==1.0.0",
"tweepy==4.16.0",
"typing-extensions==4.15.0",
"typing-inspection==0.4.2",
"tzdata==2026.2",
"urllib3==2.6.3",
"uvicorn==0.46.0",
"sqlalchemy==2.0.51",
"starlette==1.6.0",
"tweepy==4.17.0",
"typing-extensions==4.16.0",
"typing-inspection==0.4.3",
"tzdata==2026.3",
"urllib3==2.7.0",
"uvicorn==0.52.1",
"jinja2==3.1.6",
]

View file

@ -4,7 +4,7 @@
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
"automerge": false
},
{
"matchUpdateTypes": ["major"],

View file

@ -47,6 +47,20 @@ async def boss_rotation(request: Request):
})
return formatted
def nintydevsuranidiotforusingrgb(color_val):
if not color_val:
return "#000000"
if isinstance(color_val, str):
parts = [float(p.strip()) for p in color_val.split(",") if p.strip()]
elif isinstance(color_val, (list, tuple)):
parts = [float(p) for p in color_val]
else:
return "#000000"
# trash 4th val
rgb = [round(c * 255) for c in parts[:3]]
return f"#{rgb[0]:02X}{rgb[1]:02X}{rgb[2]:02X}"
with open("boss.yaml", "r", encoding='utf-8') as f:
yaml_data = yaml.safe_load(f)
@ -97,14 +111,19 @@ async def boss_rotation(request: Request):
fest_result = parse_iso(time_cfg.get("Result"))
teams = fes_yaml.get("Teams", [])
team_shortnames = []
formatted_teams = []
for team in teams:
team_shortnames.append(team.get("ShortName", {}))
raw_color = team.get("Color")
formatted_teams.append({
"shortName": team.get("ShortName", {}),
"color": nintydevsuranidiotforusingrgb(raw_color)
})
response_data["splatfestivalSplatfest"] = {
"stages": format_stages(fes_yaml.get("Stages", [])),
"mode": RULE_NAMES.get(fes_yaml.get("Rule"), "TurfWar"),
"teams": team_shortnames,
"teams": formatted_teams,
"battleResultRate": fes_yaml.get("BattleResultRate", {}),
"time": {
"start": fest_start,
"end": fest_end,

View file

@ -33,7 +33,7 @@ async def get_equipment_composite(request: Request, db: DBSession = Depends(get_
try:
decrypted_pass = cipher.decrypt(user.spfn_pass_enc.encode()).decode()
token_data = auth.get_token(user.username, decrypted_pass)
profile = json.loads(auth.get_profile(token_data["token"]))
profile = auth.get_profile(token_data["access_token"])
pid_val = int(profile.get("pid"))
mii_name = profile.get("name", user.username)

View file

@ -27,7 +27,7 @@ async def get_history(request: Request, db: DBSession = Depends(get_db)):
try:
decrypted_pass = cipher.decrypt(user.spfn_pass_enc.encode()).decode()
token_data = auth.get_token(user.username, decrypted_pass)
profile = json.loads(auth.get_profile(token_data["token"]))
profile = auth.get_profile(token_data["access_token"])
pid_val = int(profile.get("pid"))
print(f"Fetching History for PID: {pid_val}")

View file

@ -33,10 +33,10 @@ async def get_my_profile(request: Request, db: DBSession = Depends(get_db)):
decrypted_pass = cipher.decrypt(user.spfn_pass_enc.encode()).decode()
token_data = auth.get_token(user.username, decrypted_pass)
if not token_data or "token" not in token_data:
if not token_data or "access_token" not in token_data:
return RedirectResponse(url="/sign_in/")
profile_data = auth.get_profile(token_data["token"])
profile_data = auth.get_profile(token_data["access_token"])
if not profile_data:
raise HTTPException(status_code=404, detail="Profile not found")

View file

@ -0,0 +1,72 @@
from fastapi import APIRouter, Depends, HTTPException
from sqlalchemy.orm import Session as DBSession
from sqlalchemy import desc
from database import SessionLocal, PlayerRank, EquipmentLast
from fastapi_cache.decorator import cache
router = APIRouter()
def get_db():
db = SessionLocal()
try:
yield db
finally:
db.close()
@router.get("/leaderboard/getplayerstats/{pid}")
@cache(expire=60)
async def get_player_stats(pid: int, mode: int | None = None, db: DBSession = Depends(get_db)):
try:
query = (
db.query(PlayerRank, EquipmentLast)
.outerjoin(EquipmentLast, PlayerRank.PId == EquipmentLast.PId)
.filter(PlayerRank.PId == pid)
)
if mode is not None:
query = query.filter(PlayerRank.GameMode == mode)
result = query.first()
if not result:
raise HTTPException(status_code=404, detail="Player not found")
player, gear = result
player_data = {
"PId": player.PId,
"MiiName": player.MiiName,
"Rank": player.Rank,
"GameMode": player.GameMode,
"WinSum": player.WinSum,
"LoseSum": player.LoseSum,
"RankingScore": round(player.RankingScore, 2),
"weapon": gear.weapon if gear else None,
"headgear": gear.Gear_Head if gear else None,
"clothes": gear.Gear_Clothes if gear else None,
"shoes": gear.Gear_Shoes if gear else None,
}
if player.GameMode == 2:
top_100_query = (
db.query(PlayerRank.PId)
.order_by(desc(PlayerRank.FesPower))
.limit(100)
.all()
)
top_100_tuples = set(top_100_query)
is_top_100 = (player.PId,) in top_100_tuples
player_data["FesPower"] = player.FesPower
player_data["is_top_100_fes"] = is_top_100
else:
player_data["FesPower"] = None
player_data["is_top_100_fes"] = False
return player_data
except HTTPException as http_ex:
raise http_ex
except Exception as e:
print(f"Error fetching stats for player {pid}: {e}")
return {"error": str(e)}

View file

@ -37,7 +37,7 @@ async def login(
try:
print("fetching spfn token")
data = auth.get_token(username, password)
if not data or "token" not in data:
if not data or "access_token" not in data:
print("auth failed")
return RedirectResponse(f"{auth_path}{sep}error=auth&username={username}", 303)

View file

@ -93,7 +93,7 @@ async def confirm_twitter(state: str, code: str, db: DBSession = Depends(get_db)
decrypted_pass = cipher.decrypt(user.spfn_pass_enc.encode()).decode()
profile_auth = auth.get_token(user.username, decrypted_pass)
profile_response = auth.get_profile(profile_auth["token"])
profile_response = auth.get_profile(profile_auth["access_token"])
if isinstance(profile_response, str):
try:
@ -149,7 +149,7 @@ async def get_twitter_status(request: Request, db: DBSession = Depends(get_db)):
try:
decrypted_pass = cipher.decrypt(user.spfn_pass_enc.encode()).decode()
profile_auth = auth.get_token(user.username, decrypted_pass)
profile_res = auth.get_profile(profile_auth["token"])
profile_res = auth.get_profile(profile_auth["access_token"])
if isinstance(profile_res, str):
profile_data = json.loads(profile_res)
@ -183,7 +183,7 @@ async def unlink_twitter(request: Request, db: DBSession = Depends(get_db)):
user = db.query(User).filter(User.username == db_session.username).first()
decrypted_pass = cipher.decrypt(user.spfn_pass_enc.encode()).decode()
profile_auth = auth.get_token(user.username, decrypted_pass)
profile_data = auth.get_profile(profile_auth["token"])
profile_data = auth.get_profile(profile_auth["access_token"])
if isinstance(profile_data, str):
profile_data = json.loads(profile_data)

3
security.md Normal file
View file

@ -0,0 +1,3 @@
# Security Policy
Report security vulnerabilities through the security tab on this repo. Only vulnerabilities on the latest commit of any branch will be considered.

View file

@ -1,35 +1,41 @@
import requests
import base64
from config import settings
from argon2 import PasswordHasher
API_URL = "https://account.spfn.net/api/v2"
API_URL = "https://account.spbr.net/api/v2"
CLIENT_ID = "splatnet"
CLIENT_SECRET = settings.account_client_secret
ph = PasswordHasher()
def hash_password(password: str):
return ph.hash(password)
def verify_password(hashed: str, password: str):
try:
return ph.verify(hashed, password)
except Exception:
return False
def get_token(username, password):
creds = f"{username} {password}"
encoded = base64.b64encode(creds.encode()).decode()
url = f"{API_URL}/oauth2/generate_token"
headers = {
"Authorization": f"Basic {encoded}",
"User-Agent": "saturday & allison should lwk kiss..."
payload = {
"grant_type": "password",
"username": username,
"password": password,
"client_id": CLIENT_ID,
"client_secret": CLIENT_SECRET
}
response = requests.get(f"{API_URL}/oauth2/generate_token", headers=headers, timeout=10)
headers = {
"User-Agent": "chiyo & eri should lwk kiss..."
}
response = requests.post(url, data=payload, headers=headers, timeout=10)
return response.json() if response.ok else None
def get_profile(token):
url = f"{API_URL}/users/@me/profile"
headers = {
"Authorization": f"Bearer {token}",
"User-Agent": "every update im going to change this user agent because im bored!!"
"User-Agent": "lets make the most of the night like were gonna die young!!"
}
response = requests.get(f"{API_URL}/users/@me/profile", headers=headers, timeout=10)
return response.text if response.ok else None
response = requests.get(url, headers=headers, timeout=10)
return response.json() if response.ok else None

View file

@ -15,29 +15,46 @@ def process_boss_file():
base_url = settings.boss_url.rstrip('/')
tasks = [
{"url": f"{base_url}/zvGSM4kOrXpkKnpT/schdat2?c=JP&l=en", "output": "boss.yaml"},
{"url": f"{base_url}/zvGSM4kOrXpkKnpT/optdat2?c=US&l=en", "output": "fes_boss.yaml"}
{
"url": f"{base_url}/zvGSM4kOrXpkKnpT/schdat2?c=JP&l=en",
"filename": "VSSetting.byaml",
"output": "boss.yaml"
},
{
"url": f"{base_url}/zvGSM4kOrXpkKnpT/optdat2?c=US&l=en",
"filename": "Festival.byaml",
"output": "fes_boss.yaml"
}
]
try:
success_all = True
for task in tasks:
master_url = task["url"]
target_filename = task["filename"]
output_yaml = task["output"]
print(f"data get: {master_url}")
meta_res = requests.get(master_url, timeout=10)
meta_res.raise_for_status()
root = ET.fromstring(meta_res.content)
data_url_element = root.find(".//Url")
if data_url_element is None or not data_url_element.text:
print("woops! no <Url> tag found in the XML response")
# LMFAO HOW DID THIS FLY UNDER THE RADAR FOR SO LONG
real_data_url = None
for file_element in root.findall(".//File"):
filename_elem = file_element.find("Filename")
if filename_elem is not None and filename_elem.text == target_filename:
url_elem = file_element.find("Url")
if url_elem is not None and url_elem.text:
real_data_url = url_elem.text.strip()
break
if not real_data_url:
print(f"woops! could not find URL for file '{target_filename}' in the XML response")
success_all = False
continue
real_data_url = data_url_element.text.strip()
print(f"parsed data url: {real_data_url}")
print(f"parsed data url for {target_filename}: {real_data_url}")
res = requests.get(real_data_url, timeout=10)
res.raise_for_status()

3
support.md Normal file
View file

@ -0,0 +1,3 @@
# Support
For support, join [our discord](https://discord.gg/splatfestival).