Skip to content
Tildev0.6.1

6. Switch to chat

This step is about chat. tt does not have it yet: it shows the mail accounts of config.toml and no chat account. The Chat row of the demo tree is a made-up account with no folders, and no key opens a conversation. Today you send a chat message with tcli, and you see the messages that arrive with tcli watch.

A chat account in config.toml, on IRC or XMPP, as on First run. Without one, tcli says:

No chat account is configured.

The text is the standard input. On IRC, --to is a nick or a channel. --join joins the channel before writing to it:

Terminal window
echo "Hello from Tilde" | tcli send chat --to "#tilde" --join

With more than one chat account, add --account and the id of the account. On XMPP, --to is a JID or a room.

Terminal window
tcli watch

tcli watch writes one line for each event of the accounts, chat messages and mentions among them, until Ctrl-c. See Watch.

The send command writes one line that names the recipient and the account:

Sent to #tilde on irc.

More about tcli send chat is on Send mail and chat.

Next: 7. The command line and the keys.