mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-12-04 00:43:10 +00:00
52d9b19ea0
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)
|