Last modified: 2014-10-07 07:47:11 UTC
At the moment (at least for core, and probably also for compat), new messages are only seen if the bot is restarted. For long-running bots, it's sensible to break/pause/stop editing on a certain wiki when a talk page is edited. Getting the info from the wiki is easy -- just add meta=userinfo&uiprop=hasmsg to the api query. Afterwards, meta=notifications can be used for details. Added bonus: every api query returns a check whether the user is still logged in correctly.
(In reply to Merlijn van Deen from comment #0) Every n seconds? Or every x edits?
Change 137980 had a related patch set uploaded by Ricordisamoa: PROOF-OF-CONCEPT: check own talk, a custom page, and notifications https://gerrit.wikimedia.org/r/137980
Just a quick note -- when tracing the http calls made by pywikibot, I noticed it already does a lot of 'check user status' calls, including a check for talk page messages. I haven't traced where these calls come from, though, and AFAIK the bot also doesn't respond to the information.
no code to review yet (In reply to Merlijn van Deen from comment #3) > Just a quick note -- when tracing the http calls made by pywikibot, I > noticed it already does a lot of 'check user status' calls, including a > check for talk page messages. I haven't traced where these calls come from, > though, and AFAIK the bot also doesn't respond to the information. Ive only seen that in the log init code, which we have a bug & patch about.