Skip to content

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 13:57
· 8 commits to main since this release

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 in pages/keep/ stay.
  • A password page. pots page secret gives 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 publicUrl in ~/.pots/settings.json, the first page link starts a Cloudflare Quick Tunnel, and Pots downloads a pinned, checksum-checked cloudflared when none is installed. Its address changes when Pots restarts, and the bot tells people what that means. With a publicUrl, 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 add stores a form. A button with form:<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 new pages skill. 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 answerCallbackQuery itself.
  • 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 status has a pages: line with the page server's port and the public address.
  • ask-secret writes its file atomically.

What's Changed

  • Pages, forms and clicks: the bot asks and shows with more than text by @Crokily in #36

Full Changelog: v0.6.1...v0.7.0