Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
f48d7d2
Delete karen & common
Iapetus-11 Apr 18, 2025
611f23b
Setup Poem + SQLX, DB migrations, misc progress
Iapetus-11 Apr 23, 2025
8b43986
Progress (security, UserId)
Iapetus-11 Apr 25, 2025
5472084
Improve UserId parsing
Iapetus-11 Apr 25, 2025
ae1bc05
Drop not null constraint on user.discord_id
Iapetus-11 Apr 26, 2025
2201e6d
Format code + add user register endpoint
Iapetus-11 Apr 26, 2025
479e0ba
Start refactoring away from common/karen being in Python
Iapetus-11 Apr 26, 2025
ae0bd4d
Fix some imports and remove unused code
Iapetus-11 Apr 27, 2025
d189961
Mega refactoring and reorganization
Iapetus-11 Apr 27, 2025
f83def0
Tons of reorganization + get bot to not crash immediately
Iapetus-11 Apr 28, 2025
97dc92d
Update discord guilds table naming + start on discord guild endpoints
Iapetus-11 Apr 28, 2025
81e37b6
Format & lint
Iapetus-11 Apr 28, 2025
b339e3c
Finish discord guild and user services wrappers + discord guild endpoint
Iapetus-11 Apr 29, 2025
3150c03
Finish some Karen resources + add some caching
Iapetus-11 Apr 30, 2025
4869d74
Fix python version specified in pyproject.toml
Iapetus-11 Apr 30, 2025
586bb96
Improve endpoints, add get_or_create logic
Iapetus-11 Apr 30, 2025
95deab6
Properly authenticate Karen client
Iapetus-11 Apr 30, 2025
7e3e85d
Fix import sorting + delete more unused code + add support for `poetr…
Iapetus-11 Apr 30, 2025
55e7f78
Prevent duplicate items
Iapetus-11 Apr 30, 2025
334ff62
Fix .gitignore
Iapetus-11 May 1, 2025
0fd656b
Make bot run again (more lawnmowering)
Iapetus-11 May 1, 2025
930ae7c
Cleanup database logic + add item model & default items
Iapetus-11 May 1, 2025
7836ec3
Abstract out create_default_user_items
Iapetus-11 May 1, 2025
df1be4b
Start on new item format/storage
Iapetus-11 May 1, 2025
ff921ec
Restructure models folder
Iapetus-11 May 2, 2025
4cf0065
add more items to registry
Iapetus-11 May 2, 2025
83089e7
Load & parse item data from json file
Iapetus-11 May 2, 2025
92a00ca
Update discord/Dockerfile
Iapetus-11 May 2, 2025
b0dbdba
Start on validation of item data
Iapetus-11 May 3, 2025
7ad3958
Start on basic karen cli
Iapetus-11 May 3, 2025
93079db
Better errors and error handling
Iapetus-11 May 4, 2025
83a67b4
Start on items.json validation
Iapetus-11 May 4, 2025
f15bb8c
Run formatter and linter
Iapetus-11 May 4, 2025
1d4b4c8
Add findable items to items.json and improve data checking
Iapetus-11 May 4, 2025
a1fe8c7
Start working on making global_check work
Iapetus-11 May 4, 2025
e5d35b1
Progress on migration updates
Iapetus-11 May 5, 2025
63b7429
Finish the revert migration for the banned commands column/table
Iapetus-11 May 5, 2025
1804c61
Make disabled_commands column not null + have a default
Iapetus-11 May 5, 2025
af66145
Handle disabled commands
Iapetus-11 May 5, 2025
7c069bd
Update check_global to use new cached attribute/field
Iapetus-11 May 5, 2025
5d5d7ae
Add command cooldown table & model
Iapetus-11 May 6, 2025
df92112
Add some assertions to silence some mypy errors
Iapetus-11 May 6, 2025
4a24414
Misc improvements / fixes
Iapetus-11 May 6, 2025
e9abc21
Start on command cooldown infrastructure
Iapetus-11 May 6, 2025
c6bff7b
Finish? get_or_create_cooldown
Iapetus-11 May 6, 2025
8c2c3af
Add command cooldowns data and model
Iapetus-11 May 6, 2025
a6ec7d5
Silence a clippy warning
Iapetus-11 May 6, 2025
8c207ec
Start on some unit tests
Iapetus-11 May 6, 2025
1125b48
Remove utils module
Iapetus-11 May 6, 2025
45f369a
Use correct response status code in RequireAuthedClient
Iapetus-11 May 7, 2025
25f5d48
Finish up some unit tests
Iapetus-11 May 7, 2025
f2a127d
Run clippy + fmt
Iapetus-11 May 7, 2025
d94fbe7
Make last_daily_quest_reroll nullable
Iapetus-11 May 7, 2025
618c2fc
Fix UserDetailsView
Iapetus-11 May 7, 2025
7b176c2
Start on user logic tests
Iapetus-11 May 7, 2025
399cb57
Make item sell_price non-nullable
Iapetus-11 May 7, 2025
6c5363e
Finish user logic unit tests
Iapetus-11 May 7, 2025
3da1e95
More progress on item models / logic
Iapetus-11 May 7, 2025
6f29cd0
Add wood tools to registry
Iapetus-11 May 7, 2025
bd097cc
Refactor how data is loaded & stored in memory
Iapetus-11 May 7, 2025
ccc5f4a
Move create_test_user(...) -> testing.rs
Iapetus-11 May 7, 2025
e10ea8d
Finish item tests + make create_items() upsert items
Iapetus-11 May 7, 2025
e3e6b4f
Start on discord guild logic tests
Iapetus-11 May 8, 2025
ac630a8
Fix create_items test
Iapetus-11 May 8, 2025
d5ab798
Add discord guild logic tests
Iapetus-11 May 8, 2025
a8549e9
Improve cooldown schema and logic
Iapetus-11 May 8, 2025
30fea40
Lint and format
Iapetus-11 May 8, 2025
ffd8282
Format code again
Iapetus-11 May 8, 2025
d45a0f9
Move item data checks to a test
Iapetus-11 May 8, 2025
e6d9023
Restructure karen service to support nested resources
Iapetus-11 May 9, 2025
baeb1eb
Strip unused derives from DB models
Iapetus-11 May 9, 2025
10ff02d
Add config to route data
Iapetus-11 May 9, 2025
5c4f0ea
Add tests for user details endpoint
Iapetus-11 May 9, 2025
e8b0997
Format & lint code
Iapetus-11 May 9, 2025
6a41981
Simplify user tests
Iapetus-11 May 10, 2025
8ad1f64
Start on cooldown route tests
Iapetus-11 May 10, 2025
008198f
Remove outdated TODO
Iapetus-11 May 10, 2025
8db5e13
Slim down tokio enabled features
Iapetus-11 May 10, 2025
8310c49
Switch to dotenvy (dotenv is unmaintained)
Iapetus-11 May 10, 2025
df9daac
Fixes
Iapetus-11 May 10, 2025
40e3cf2
Fix nested routes
Iapetus-11 May 10, 2025
e24145b
Restructure common/testing & add auto-auth
Iapetus-11 May 10, 2025
524748b
Fix security.rs
Iapetus-11 May 10, 2025
2f8bc9a
Run formatter & linter
Iapetus-11 May 10, 2025
a50fb4f
Fix cooldown logic & finish cooldown route tests
Iapetus-11 May 10, 2025
a4c1f17
Fix and add more tests
Iapetus-11 May 10, 2025
ed7c565
Rename field from cooldown -> until
Iapetus-11 May 10, 2025
f9b6857
Improve base pydantic models
Iapetus-11 May 10, 2025
f219fd4
Small progress on command cooldowns
Iapetus-11 May 10, 2025
5b8501b
Add missing typehints
Iapetus-11 May 11, 2025
bfdbf4c
Misc progress on bot side, start on patch guild endpoint
Iapetus-11 May 11, 2025
b8f40c0
Minor improvements and some formatting
Iapetus-11 May 11, 2025
c620562
Finish guild partial update endpoint
Iapetus-11 May 11, 2025
a62bbea
More progress on discord guild update endpoint wrapper
Iapetus-11 May 11, 2025
9a2ea5f
More progress
Iapetus-11 May 12, 2025
4a1a6dd
Progress on user locking
Iapetus-11 May 13, 2025
1db4f67
Update DiscordGuildsResource.update(...) typing
Iapetus-11 May 13, 2025
1308927
Start on some actual command stuff
Iapetus-11 May 13, 2025
a650166
Add create options to create_test_user(...) + add more tests + fix fo…
Iapetus-11 May 13, 2025
1b1517c
Add get_user_tools(...)
Iapetus-11 May 13, 2025
ef300af
Move create_default_user_items() to items.rs
Iapetus-11 May 14, 2025
4ce8302
Finish user_tools.rs
Iapetus-11 May 14, 2025
4ec53ab
Start on profile command logic & data endpoint
Iapetus-11 May 14, 2025
ac23952
Move badge assets
Iapetus-11 May 15, 2025
0a0e982
Add user_effects table & start on logic layer for it
Iapetus-11 May 15, 2025
bda3150
Install image library (with minimal features enabled)
Iapetus-11 May 15, 2025
bfaafcc
Start on badge generation + finish profile command logic
Iapetus-11 May 15, 2025
41a73d6
Rearrange some files
Iapetus-11 May 15, 2025
503385a
Fix mods
Iapetus-11 May 15, 2025
1e9128b
Fix import
Iapetus-11 May 15, 2025
a1cc051
BADGES! BADGES! BADGES!
Iapetus-11 May 15, 2025
f042a3f
Restructure routes
Iapetus-11 May 15, 2025
8bb3071
idk progress
Iapetus-11 May 16, 2025
3b68758
Fix BaseModel typing
Iapetus-11 May 16, 2025
a93faa2
Base url changes
Iapetus-11 May 16, 2025
91a07ef
Fix route method
Iapetus-11 May 18, 2025
3719fea
Get profile command working!
Iapetus-11 May 18, 2025
2481e81
Fix adding config with test api client
Iapetus-11 May 18, 2025
fa323a8
Format imports
Iapetus-11 May 18, 2025
e83a222
Add partial update user function
Iapetus-11 May 18, 2025
4ccbe16
Restructure profile command wrapper
Iapetus-11 May 18, 2025
feea6f7
uhhhh
Iapetus-11 May 18, 2025
941104d
Set vote streak to zero in get_profile_command_data
Iapetus-11 May 19, 2025
10da48e
Mega refactoring (single endpoint for command checks)
Iapetus-11 May 19, 2025
ef6ce6c
More progress on command preflight stuff
Iapetus-11 May 20, 2025
90ee269
Fix migration
Iapetus-11 May 20, 2025
b1cb7c2
Enable tracing
Iapetus-11 May 20, 2025
1d7fc6e
Start mobs.json & model
Iapetus-11 May 20, 2025
782cc1e
Lots of progress refactoring + reorganizing + command preflight checks
Iapetus-11 May 20, 2025
573835f
Optimize profile command (fetch badges after initial response is sent)
Iapetus-11 May 20, 2025
768b309
Progress on contet, error handling, whatever
Iapetus-11 May 20, 2025
26b8556
Yeet unnecessary stuff
Iapetus-11 May 21, 2025
8ea3d43
Kwargs are nice
Iapetus-11 May 21, 2025
a38688e
Fix raising error for cooldowns
Iapetus-11 May 21, 2025
27c54fe
Remove unnecessary stat recording
Iapetus-11 May 21, 2025
cd8e596
Fix formatting of imports
Iapetus-11 May 21, 2025
1c28731
Optimize profile command
Iapetus-11 May 21, 2025
dd82d5b
Remove old comment
Iapetus-11 May 21, 2025
6027135
Use HashMap/Set instead of BTreeMap/Set
Iapetus-11 May 21, 2025
9a28ee2
Fix mob spawning chance logic
Iapetus-11 May 21, 2025
f4c294d
Format code
Iapetus-11 May 21, 2025
326fd84
Rename partial_update_* -> update_*
Iapetus-11 May 21, 2025
33899c6
Start on some leaderboard stuff + update commands leaderboard in pref…
Iapetus-11 May 24, 2025
ac8c7c2
Fix user creation
Iapetus-11 May 24, 2025
38bdad4
Update balance command
Iapetus-11 May 24, 2025
9344c7b
Fix items categories
Iapetus-11 May 25, 2025
1300980
Finish inv commands
Iapetus-11 May 25, 2025
47aefc4
Format
Iapetus-11 May 25, 2025
e9aa545
Format code part 2 electric boogaloo
Iapetus-11 May 25, 2025
3ae6954
Setup fish market randomization + db item syncing
Iapetus-11 May 25, 2025
413e91f
Remove outdated comment
Iapetus-11 May 26, 2025
1af937e
Start on fish rework
Iapetus-11 May 28, 2025
a3064e4
Finish refactoring fishing market
Iapetus-11 May 28, 2025
51c9ece
Misc formatting + renames
Iapetus-11 May 28, 2025
2977f2f
Improve ergonomics of user locking
Iapetus-11 May 28, 2025
c865ad0
Start on vault endpoints
Iapetus-11 May 28, 2025
ed37cc9
progress
Iapetus-11 May 29, 2025
d4126de
Yeet
Iapetus-11 May 29, 2025
ddc265e
Start on some more deposit endpoint tests
Iapetus-11 May 29, 2025
e567a9c
Finish vault deposit endpoint tests
Iapetus-11 May 29, 2025
818654c
Format code
Iapetus-11 May 29, 2025
502f8b2
Abstract common game errors
Iapetus-11 May 29, 2025
26add17
Finish vault endpoints (tests missing)
Iapetus-11 May 29, 2025
f57009c
Withdraw endpoint tests + validate that block amount is >0
Iapetus-11 May 29, 2025
308dfc2
Vault command progress
Iapetus-11 Jun 2, 2025
6cb1a7f
More vault and game error stuff
Iapetus-11 Jun 3, 2025
fd5c6b0
Remove unnecessary debug println
Iapetus-11 Jun 4, 2025
21d7b08
Finish withdraw command
Iapetus-11 Jun 4, 2025
fd27821
Remove some old code
Iapetus-11 Jun 4, 2025
1d5db4a
Shop command progress
Iapetus-11 Jun 4, 2025
7aec219
Reformat code + improve profile route structure and tests
Iapetus-11 Jun 5, 2025
ee2e538
Finish new shop command
Iapetus-11 Jun 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ __pycache__/
.ruff_cache/
.pytest_cache/

secrets.json
**/secrets.json
.env

tmp/
fonts/
discord/tmp/
discord/fonts/

karen/target/
karen/.sqlx/
7 changes: 0 additions & 7 deletions bot/models/karen/cluster_info.py

This file was deleted.

6 changes: 0 additions & 6 deletions bot/models/karen/cooldown.py

This file was deleted.

39 changes: 0 additions & 39 deletions bot/utils/ctx.py

This file was deleted.

27 changes: 0 additions & 27 deletions bot/utils/database_proxy.py

This file was deleted.

287 changes: 0 additions & 287 deletions bot/utils/karen_client.py

This file was deleted.

Loading
Loading