mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 00:30:33 +03:00
Fix game_runnning() doc in PLUGINS.md
This commit is contained in:
parent
e7f8fea250
commit
705d2dd4f1
@ -83,9 +83,16 @@ from the original files unless specified as allowed in this section.
|
|||||||
|
|
||||||
`import plug` - For using `plug.show_error()` only.
|
`import plug` - For using `plug.show_error()` only.
|
||||||
|
|
||||||
`from monitor import game_running` - in case a plugin needs to know if we
|
Use `monitor.game_running()` as follows in case a plugin needs to know if we
|
||||||
think the game is running. *NB: This is a function, and should be called as
|
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`.*
|
such. Using the bare word `game_running` will always be `True`.*
|
||||||
|
|
||||||
|
```
|
||||||
|
from monitor import monitor
|
||||||
|
...
|
||||||
|
if monitor.game_running():
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
`import timeout_session` - provides a method called `new_session` that creates
|
`import timeout_session` - provides a method called `new_session` that creates
|
||||||
a requests.session with a default timeout on all requests. Recommended to
|
a requests.session with a default timeout on all requests. Recommended to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user