Retro Bulletin Board Systems on atproto. Web app and TUI. lazy mirror of alyraffauf/atbbs atbbs.xyz
forums python tui atproto bbs
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

tui: add cli argument support for autodialing bbs

+13 -2
+4 -1
tui/__main__.py
··· 1 + import sys 2 + 1 3 from tui.app import AtbbsApp 2 4 3 5 4 6 def main(): 5 - app = AtbbsApp() 7 + handle = sys.argv[1] if len(sys.argv) > 1 else None 8 + app = AtbbsApp(dial=handle) 6 9 app.run() 7 10 8 11
+9 -1
tui/app.py
··· 65 65 ] 66 66 SCREENS = {"home": HomeScreen} 67 67 68 + def __init__(self, dial: str | None = None): 69 + super().__init__() 70 + self._dial = dial 71 + 68 72 def on_mount(self) -> None: 69 73 self.http_client = httpx.AsyncClient() 70 74 os.makedirs(DATA_DIR, exist_ok=True) ··· 75 79 # Restore saved session 76 80 self._restore_session() 77 81 78 - self.push_screen(HomeScreen()) 82 + home = HomeScreen() 83 + self.push_screen(home) 84 + 85 + if self._dial: 86 + home.connect(self._dial) 79 87 80 88 def _restore_session(self) -> None: 81 89 """Load the most recent session from the database."""