Skip to main content

Message Proxies

Repost messages from other bots in a channel through a Discord webhook, with optional find-and-replace rules on the text.

Why Use This Feature?

  1. Moves another bot's posts into a channel or server where that bot can't post itself.
  2. Keeps the source bot's name and avatar, so the reposts look like the original posts.
  3. Cleans the text with replacements before reposting, such as removing a mention or a promotional line.

How It Works

  • What it reads — New messages from bots in each rule's source channel, skipping messages posted by webhooks.
  • Which rule fires — The first rule whose source channel matches.
  • How the text is built — The bot takes the message text, adds an "Attachments:" list of up to 5 file links, applies the replacements, and fills in %YEAR%.
  • What it posts — The text and up to 10 of the original embeds, through the rule's webhook, under the source bot's username and avatar.

Replacements change only the text, not the embeds, and mentions in the repost never notify anyone. A message with no text and no embeds is skipped.

Stonker's own messages in a source channel count as bot messages, so they are proxied too.

Requirements

Saving checks each webhook URL, and a wrong one shows "Enter a Discord webhook URL, starting with https://discord.com/api/webhooks/." next to the field. If the bot still can't use a URL when it connects, every proxy rule for the server stays off until you fix it.

Settings

Each rule has these fields.

FieldDescription
Name (name)The rule's name, up to 100 characters.
Channel (channel)The source channel to watch.
Webhook → Webhook URL (webhook.webhook-url)The webhook that posts the repost, stored as an encrypted secret.
Replacements (replacements)Optional list of up to 50 replacements, each with a Pattern, Flags, and Replace with text.
Show the submitted message (print-payload)Legacy setting, accepted but ignored.

Example

Message proxies settings
json
[
  {
    "name": "Relay news bot",
    "channel": { "channel-id": "123456789012345678" },
    "webhook": { "webhook-url": { "$secret": "message-proxies.news.webhook" } },
    "replacements": [
      { "pattern": "Sponsored by .*$", "flags": "m", "replace-with": "" }
    ]
  }
]

Message Variables

VariableBecomes
%YEAR%The current year in UTC

Limits

Troubleshooting

Changes from the legacy bot

The legacy bot also proxied webhook messages, fired every matching rule, uploaded attachments again, kept text-to-speech, and pinged the original mentions again. The rewrite proxies bot messages only, stops at the first rule, links attachments, and never pings or uses text-to-speech.