Rework run into a nice to use shell

This commit is contained in:
Raven Scott
2026-08-13 14:27:19 -04:00
parent 0d08dfd0d2
commit 993514f796
12 changed files with 1652 additions and 177 deletions
@@ -5,7 +5,7 @@
"synopsis": [
"discord-bot [--env PATH] [--token TOKEN] [--guild ID] [--check] [--debug] [--message-content] [--login-timeout MS]"
],
"description": "Bare OS Discord bot via ctx.bare.discordJS. Commands run as the unlocked session user (not guest). Slash commands include /settings (live session settings: theme, shell flags, hostname, Discord guild/whitelist, agent, IRC, aliases — never tokens), /files (interactive file manager: browse, paginate, open, mkdir, rename, copy, delete), /panel, /edit and /create (modal editor/creator for ~/ and /tmp), /bare, /sys, /svc, /fs, /net, /man, /say, /run, /journal, /ping. Unit, man page, path, and /run options use Discord autocomplete. Replies are embeds. Interactive embeds delete themselves after 2 minutes idle (any click resets the timer; if delete is denied the buttons are stripped). Foreground Ctrl+C stops the process. Token from --token, DISCORD_TOKEN, or ~/.discord/.env. Optional DISCORD_ID_WHITELIST=id,id restricts who may use the bot. The initd unit bare-os-discord is listed by systemctl only when ~/.discord/.env exists.",
"description": "Bare OS Discord bot via ctx.bare.discordJS. Commands run as the unlocked session user (not guest). /run is a non-interactive shell: persistent cwd per Discord user, command history, autocomplete for commands/paths/flags, pipes and cd. Slash commands also include /settings, /files, /panel, /edit, /create, /bare, /sys, /svc, /fs, /net, /man, /say, /journal, /ping. Replies are embeds that paginate when large and expire after 2 minutes idle. Token from --token, DISCORD_TOKEN, or ~/.discord/.env. DISCORD_ID_WHITELIST restricts who may use the bot (required once /run is a full shell). The initd unit bare-os-discord is listed by systemctl only when ~/.discord/.env exists.",
"options": [
{
"flag": "--env PATH",