1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

PLUGINS.md: Correct and expand on monitor.game_running() documentation

This commit is contained in:
Athanasius 2021-02-18 09:28:39 +00:00
parent 9b1b34f273
commit 872f380831

@ -59,8 +59,9 @@ contained therein. NB: There's a plan to move such to a `data` module.
for `dashboard_entry()` to be useful (see example below). Relying on anything
else isn't supported.
`from monitor import gamerunning` - in case a plugin needs to know if we
think the game is running.
`from monitor import game_running` - in case a plugin needs to know if we
think the game is running. *NB: This is a function, and should be called as
such. Using the bare word `game_running` will always be `True`.*
`import timeout_session` - provides a method called `new_session` that creates a requests.session with a default timeout
on all requests. Recommended to reduce noise in HTTP requests