mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01: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
16 lines
448 B
Python
16 lines
448 B
Python
from api.request import ApiRequest
|
|
|
|
|
|
def get_code(code: str) -> str:
|
|
"""
|
|
Gets the game data for a certain game code or returns None
|
|
:param code: code to get data for
|
|
:return: data or None
|
|
"""
|
|
result = ApiRequest().set_search(code).set_amount(10).request()
|
|
if len(result.results) >= 1:
|
|
for result in result.results:
|
|
if result.game_id == code:
|
|
return result.to_string()
|
|
return None
|