Repository navigation
v0.7.0
The bot can show people web pages, ask with buttons and forms, and take secrets on a page, also when its computer has no public address.
Added
- Pages. The bot writes web pages in
pages/<name>/of its folder and gives people links to them (pots page link). A link is long and random, can be made for one person (--for), and works until the bot unlinks it or the page is deleted. Answers from a page (the kit has choices, text, comments and approve or reject) wake the bot once per submission, with the version of the page the person saw. A page that nobody opened, linked or changed for 30 days is deleted; pages inpages/keep/stay. - A password page.
pots page secretgives a link, for one person, to a page of Pots' own where they type secrets once. The values go into a file in the secrets folder, never into the log, a wake or a trace. The link stops working after the submission, or after an hour. Link previews do not use it up. - A public address with no setup. The page server listens on this computer only. With no
publicUrlin~/.pots/settings.json, the first page link starts a Cloudflare Quick Tunnel, and Pots downloads a pinned, checksum-checkedcloudflaredwhen none is installed. Its address changes when Pots restarts, and the bot tells people what that means. With apublicUrl, for example a Tailscale Funnel address that the bot set up with you, links use that address. - Forms from buttons on Slack and Discord.
pots form addstores a form. A button withform:<name>opens it at once, within the platform's 3 seconds, and the submitted values wake the bot. - Skills come with Pots. The Slack, Discord and Telegram guides are now skills (
slack-channel,discord-channel,telegram-channel), each with a new section on buttons, forms, tables and clicks, and there is a newpagesskill. Every bot sees them. A skill of yours with the same name is used instead.
Changed
- Clicks wake the bot at once. A click on one of the bot's buttons or menus, a command of the bot, or a submitted form wakes it straight away, not through the judge and without waiting for more messages. This also holds on a message the log does not have, such as a Slack ephemeral message.
- Pots answers Telegram button presses, so the button stops spinning at once. The bot no longer calls
answerCallbackQueryitself. - Platform errors say what was wrong. When Slack, Discord or Telegram refuses a call, the bot sees the platform's details, for example which block of a Slack message is invalid. They never hold a token.
pots statushas apages:line with the page server's port and the public address.ask-secretwrites its file atomically.
What's Changed
Full Changelog: v0.6.1...v0.7.0