Skip to content

Commit 9c99eb4

Browse files
cmyuimemsdm05
andauthored
v3.2.2 - restrictions, dev commands, png/jpeg support for avatars, cleaning, fixes, and much more (#57)
* nicely format score in #1 announce * add shorthand reasons to silence/ban cmds * check whether oppai-ng is built on startup * type hint collections __iter__ * show pp when awarded in #1 notif & cleanup * add !wipemap, make !switchserv admin * support png|jpg|jpeg & favicon for a.ppy.sh * send default ava to `a.ppy.sh/id` url * add /api/check_online & /api/calc_pp * basic restrictions, admin stealth, logging/code fixes/cleanup & more * osu! coloured osu! packets * some fixes & cleanup * fix 30d cap for donor_expiry * cherry: only show real donors w/ yellow colour ingame * add max_combo to beatmap objects (& sql) * prepare for v3.2.2 release * cache many Player properties * clean up Player api a bit * add basic !fakeusers command * only fetch map if md5 != '' (/api/check_online) * turns out osu api can send None for max_combo * clan_rank -> clan_priv * bugfixes & cleanup * much needed speed improvements to !fakeusers * further improve !fakeusers * better var names & comments * updated copyright (#55) Co-authored-by: Ben Browner <[email protected]>
1 parent f8d033f commit 9c99eb4

19 files changed

+1038
-498
lines changed

Diff for: LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 cmyui
3+
Copyright (c) 2021 cmyui
44

55
Permission is hereby granted, free of charge, to any person obtaining a
66
copy of this software and associated documentation files (the "Software"),

Diff for: bg_loops.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ async def rm_donor(userid: int, when: int):
5151

5252
# enqueue rm_donor for any supporter
5353
# expiring in the next 30 days.
54+
# TODO: perhaps donor_end datetime?
5455
query = (
5556
'SELECT id, donor_end FROM users '
56-
'WHERE donor_end < DATE_ADD(NOW(), INTERVAL 30 DAY) '
57+
'WHERE donor_end <= UNIX_TIMESTAMP() + (60 * 60 * 24 * 7 * 4) '
58+
#'WHERE donor_end < DATE_ADD(NOW(), INTERVAL 30 DAY) '
5759
'AND priv & 48' # 48 = Supporter | Premium
5860
)
5961

0 commit comments

Comments
 (0)