From 872f38083148fd063a5d9399aa7709caadd03ba5 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 18 Feb 2021 09:28:39 +0000 Subject: [PATCH] PLUGINS.md: Correct and expand on monitor.game_running() documentation --- PLUGINS.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PLUGINS.md b/PLUGINS.md index a48f41f8..14c46ada 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -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