Skip to main content

Discord

A direct message with your own Discord bot, both ways. Taji's alerts reach your Discord DMs, and you talk to your agent from your phone by messaging the bot.

You need a Discord account, and a server you manage or a new empty one, so the bot can share a server with you. Taji reads the direct messages your bot receives and sends as it; it never reads a server's channels and never asks for your Discord password. Your vault must be open: it seals the bot token.

The form is discord. Start it from Discord's row under Channels on the Connections page. Its steps and the words it refuses with are the plugin's manifest, taji-plugin.toml; the last step is Taji's own. The sheet shows a code. From your own Discord account, send it in a direct message to your bot within ten minutes; Show a new code makes another. The account that sends the code is the owner. Once linked, the row shows when Taji last sent to you.

Use​

  1. Get alerts. Every alert Taji raises arrives as a message from your bot in your DMs. Your agent sends nothing for it.
  2. Talk to your agent. Message your bot from the owner account. The Taji window can be closed. The reply is your agent's last message: the figure first, then one or two short sentences.
  3. Ask for a chart. Say "show me" or "chart". The reply carries the chart as an attached picture, taji.png. Without that, you get text and an offer of the picture.
  4. Answer a permission card. When your agent needs a permission, the message carries buttons such as Yes, Always and No. Press one; Taji takes the buttons off the message. If Discord does not take Taji's answer, the buttons stay; your first press still counts, and pressing again answers No such request.
  5. Start a new thread or switch agent. Send taji new to start a new thread, taji agent to list your agents and taji agent <id> to switch. Taji answers these itself; the agent never sees them.

The bot is the one you created and named; it hears only your direct messages to it, and a message in a server channel is ignored.

Is it your bot? Taji has no Discord bot of its own: a bot that messages you is one you set up. A genuine message never asks you to open a link to sign in or verify, and never asks for your bot token, a pairing code, a key or a password. Approvals happen only in the Taji window.

An order's approval cannot come from your phone. On an account with approvals on, the order waits in the Taji window and your agent says so. What your agent can and cannot do is in Connect your agent.

Unlink Discord from its row under Channels on the Connections page (or POST /verb/channels/unlink with {"channel": "discord"}) while your vault is open. Taji stops the Gateway connection, deletes the sealed bot token from the vault, clears pending permission cards, and removes the link and owner pairing from its state.

Taji does not revoke the token at Discord. In the Discord Developer Portal, open your application and reset the bot token on the Bot page (or delete the application), and remove the bot from your server if you no longer want it there.

If it fails​

SymptomCauseFix
The sheet refuses with invalid_keyDiscord did not accept the bot tokenReset the token on the Bot page of your application and paste the new one
The sheet or a send fails with no_dmDiscord cannot deliver the bot's DM, because you share no server with the botAdd the bot to a server you are in, then try again
Discord's row says Discord's daily session starts are spentTaji started more Discord sessions today than Discord allowsNothing: Taji connects again when Discord's count resets, in the minutes the row gives; where Discord named no reset, Taji asks it again every few seconds
Discord's row says Discord asked Taji to slow downDiscord rate-limited your bot and named how long to waitNothing: Taji sends nothing until the wait has passed, and a message due meanwhile fails with that error
Discord's row reads Vault lockedThe vault is closed after a restartOpen the vault in the Taji window; nothing sends until you do

References​