mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-03-02 22:55:37 +00:00

7Z Stream reader is broken Zip Stream reader doesn't exist Supported formats: - .gz - .log Add manual library load report. Last problems still not fixed. Disable .zip and .7z logs. Turn on feedback for invalid/non-tested serials. Fixup Log Analysis
10 lines
280 B
Python
10 lines
280 B
Python
def limit_int(amount: int, high: int, low: int = 0) -> int:
|
|
"""
|
|
Limits an integer.
|
|
:param amount: amount
|
|
:param high: high limit
|
|
:param low: low limit
|
|
:return: limited integer
|
|
"""
|
|
return low if amount < low else (high if amount > high else amount)
|