Repository navigation
Releases
Releases · jodab/nejomibot
0.99.40
Fixed
- Fix a test case that could open a browser window when running in
a CI environment. The test now simulates the
captcha challenge without actually opening a
browser.
0.99.39
Added
nejomibot --example-configprints every setting, described, as the
installed version has them, to start aconfig.tomlfrom: the package
from PyPI now has the example too, which only the image had.nejomibot --versionand--helpwork as well. The README's "Without a container"
says how to run the bot from the package.
0.99.38
Changed
/statusshows memory and swap alike, as used of total, asfreeand
htopdo, and both together on a line of their own:Memory 383.5/905.0MB used,Swap 41.9/452.0MB used,Total 425.4MB/1.3GB used. It showed the memory available, and the swap used.- An image built as a version of its own (
--build-arg VERSION=...), such
as a local build's0.99.37+g3fa91a0, reports that version in/status,
its notices and the health pings, not only in its label.
0.99.37
Added
- nejomibot is on PyPI:
uv tool install nejomibotinstalls the bot and
its tools without a container, anduvx --from nejomibot nejomibot-account --url HOST:PORTruns the account tool on any machine
that reaches signal-cli-rest-api. It needs Python 3.15, which uv fetches.
Each file has an attestation that the release workflow signed. The image
remains the main way to run the bot. nejomibot-helpoutside the image lists the bot and its tools, and where
the settings are.
Changed
- The bot uses signalbot's own phonenumbers package, in place of
phonenumberslite: the image is 43 MB larger, 258 MB for amd64, and needs
no more memory. - The picture
/selfpromoteposts islogo.png, made from
.github/logo.svg; both weresocial-previewbefore.
0.99.36
Added
- SECURITY.md: how to report a vulnerability privately, and how to verify
a release's images and tag. - The release workflow can publish the package on PyPI too, by trusted
publishing, with signed attestations, once the repository's variable
PYPI_PUBLISHistrue.
Changed
- The README is under a fifth of its length, written for administrators,
with a banner, and is also the image's page on Docker Hub:DOCKERHUB.md
is gone. It shows how to run the bot from a checkout, without a
container. The comments inconfig.example.tomlare shorter too. - The social preview picture, which
/selfpromoteposts, has the USS
Enterprise-D in place of the planet, and a Pac-Man more like Yoda. - The wheel holds the translations compiled, in place of their
.po
files, as the image always had. The package's metadata asks for
signalbot's phonenumbers, which uv still swaps for phonenumberslite.
0.99.35
Added
- A chat with a group or a person, in the terminal, as the bot:
podman exec -it nejomibot nejomibot-chat --to 1posts each line you
type to chat 1 of/chats, as/msgdoes, or runs its command there, as
/rundoes, if it starts with one, and shows what is sent there as it
arrives, above the line you're typing, after the latest ten messages.
Ctrl-D ends it.--recentand--followtake--totoo, for those
chats' messages alone. See "A chat with a group or a person" in the
README.
Changed
nejomibot-chat --toin a terminal, with no message and no files, is
that chat; it asked for one message before, as it still does with files./selfpromoteis short: the bot's name, and links to its source code on
GitHub and its image on Docker Hub, under its picture.
0.99.34
Updating
signal-account.shis nownejomibot-account, with the same commands,
options and questions:podman exec -it nejomibot nejomibot-account setup, or with Compose,docker compose exec nejomibot nejomibot-account setup. Whatever ransignal-account.shneeds the new name. Outside a
container, it runs from a checkout of the repository withuv run nejomibot-account, wheresignal-account.shneeded bash, curl and jq.nejomibot-help.shis nownejomibot-help, andhelptoo.
Added
/selfpromote, for admins: the bot itself, in a few serious words in
the chat's language, under its social preview picture: what it does, how
it runs, and links to its source code on GitHub and its image on Docker
Hub. It comes to you, to forward;/run 1 /selfpromoteposts it to chat
1.- Commands can also start with
!, as in!photo, just as they can with
.and/, and so can aliases, shortcuts and the names of specials.
command_prefix = "!"has the bot show them that way. helpshows the guide to the tools in the bot's container, in a shell
there or aspodman exec nejomibot help.
Changed
- The tools in the image are Python, as the bot is, and need no shell:
nejomibot-account, which draws the QR code for linking itself, and
nejomibot-help. The image no longer has curl, jq and qrencode, which
onlysignal-account.shused, and is 13 MB smaller: 215 MB for amd64. - The guide that a shell in the container starts with lists
nejomibot-accountandhelp, and where the settings, the data and the
photos are. - The bot's log and the admins' notices name
nejomibot-accountwhere they
namedsignal-account.sh. - The social preview picture, which GitHub shows for the repository and
/selfpromoteposts, is new.
0.99.33
Added
- Formatting in
nejomibot-chat: marks around words, such as**bold**,
*italic*,~strikethrough~,`monospace`and||spoiler||, give
them Signal's text styles, as Signal's formatting menu does, so
/special addand/msgkeep them. A mark styles only where it opens at
the start of a word and closes at the end of one, so2*3and~5 min
stay as typed, and a\before a mark keeps it too, as in
\*WAKE UP\*. See "Formatting" in the README's "The bot from a
terminal".
Changed
/msgkeeps the formatting of its text, such as bold set with Signal's
formatting menu; it posted plain text before. Formatting that the bot
can't pass on, as where bold and italic meet inside a word, gets the
same answer as in/special add, and nothing is posted.
0.99.32
Added
nejomibot-chat, in the image: the bot from a terminal, as the first
admin in the configuration uses it in a direct chat, such as
podman exec -it nejomibot nejomibot-chatfor a chat, or
podman exec nejomibot nejomibot-chat /statusfor one command. The
answers come to the terminal, and the rest happens as in Signal:/msg
and/runpost to their chats, and the numbers in lists are that
admin's. A message can come from standard input, and files can be
attached with-a, from standard input too: one, or several in a tar
archive, up to 25 MB together./msgposts them, with or without a text,
--to 1,2is short for/msg 1,2, and/avatartakes a picture
attached this way.--recentlists the latest messages the bot has
received, in every chat,--followshows them as they come,--json
prints everything as JSON, and--save DIRsaves the files in it. Only
the bot's own user and root can use it. See the README's new section
"The bot from a terminal".- The bot keeps the 100 latest messages it receives, in every chat, in
memory only, fornejomibot-chat --recentand--follow./incoming
lists only direct messages from people other than the admins, as before. - The setting
received_attachments, off by default: when it's on,
nejomibot-chatalso lists the files in the messages the bot received,
and saves them with--save. They stay with signal-cli, which keeps them
only withJSON_RPC_IGNORE_ATTACHMENTS=false, and the bot keeps no copy
of its own, so the setting costs no memory.
0.99.31
Changed
- Linking the bot to a phone with Signal, as a linked device, is a
supported alternative to registering a number for it: the README's new
section "Linking to a phone" describes how, and what it means for the
bot.signal-account.shno longer asks for confirmation before it links:
it notes the drawbacks, then shows the QR code. After linking,setup
skips the registration lock PIN, which only the phone can set. - The setup guides no longer have you solve a captcha before you register
the bot's number: Signal doesn't always require one, and
signal-account.shasks for one only when Signal does, as it did before.