| 1312 | scope: Parameter. |
| 1313 | |
| 1314 | Returns: |
| 1315 | Varies. |
| 1316 | """ |
| 1317 | now = time.time() |
| 1318 | with PRESENCE_LOCK: |
| 1319 | bucket = PRESENCE.setdefault(scope, {}) |
| 1320 | bucket[username] = now |
| 1321 | |
| 1322 | def is_online(username: str, scope: str) -> bool: |
| 1323 | """is_online. |
| 1324 | |
| 1325 | Internal helper function. |
| 1326 | |
| 1327 | This docstring was added automatically to improve maintainability. |
| 1328 | |
| 1329 | Args: |