FomoTelegram
FomoTelegram: A Fomo submod that relays On-Together chat messages to a Telegram chat via a Telegram Bot. Use /fomohelp and look for /fomotelegram commands
模組介紹 作者原文
FomoTelegram
A Fomo add-on for On Together that relays in-game chat messages to a Telegram group or channel via a Telegram Bot.
Requirements
- Fomo (hard dependency)
Features
- Forwards global chat, local chat, and system notifications to any Telegram chat or group
- Respects the Fomo ChatSinkLocalRange setting — local messages from players outside your range are filtered before reaching Telegram
- Rate-limited background send queue — won't hammer the Telegram API during busy chat sessions
- Bidirectional relay — messages sent from Telegram back to the bot are injected into the in-game chat
- Configurable format strings for chat messages and notifications
- Per-category toggles (global / local / notifications) and a master on/off switch
Setup
- Create a Telegram Bot
- Open Telegram and message @BotFather
- Send /newbot and follow the prompts
- Copy the API token (looks like 123456789:ABCdefGHI…) to somewhere safe
- Say hello to your own bot so it gains the rights to talk to you.
- Find your Chat ID
- Say hello to user @userinfobot.
- It will reply with your chat ID.
- User chat IDs are positive e.g. 123456789
- Configure the mod
After the first run a config file is generated at:
BepInEx/config/com.andrewlin.ontogether.fomotelegram.cfg
Fill in TelegramBotApiKey and TelegramChatId:
[Telegram]
TelegramBotApiKey = 123456789:ABCdefGHI…
TelegramChatId = 234567890
[Filters]
RelayGlobalChat = true
RelayLocalChat = true
RelayNotifications = true
[Formatting]
MessageFormat = [{channel:short}] {username}: {message}
NotificationFormat = {message}
- Connect without restarting
With the config saved, run /ftr in the in-game chat to reload the config and start the Telegram connection immediately. No game restart required.
To verify what credentials are loaded at any time, run /ftrc.
In-Game Commands
Type any command into the in-game chat. Commands start with / and are not sent to other players.
| Command | Short | Description |
|---------|-------|-------------|
| /fomotelegramtoggle | /ftt | Toggle Telegram forwarding on/off |
| /fomotelegramrestart | /ftr | Reload config from disk and restart the Telegram connection |
| /fomotelegramreloadconfig | /ftrc | Reload config from disk and show the current API key (masked) and chat ID |
| /fomotelegramsetupinfo | /ftsinfo | Print setup instructions |
| /fomotelegrammessageformat [format] | /ftmf | Get or set the chat message format string |
| /fomotelegramnotificationformat [format] | /ftnf | Get or set the notification format string |
Examples
/fomotelegramtoggle
/ftr
/fomotelegrammessageformat [{timestamp:HH:mm}] [{channel:short}] {username}: {message}
Configuration
Located in BepInEx/config/com.andrewlin.ontogether.fomotelegram.cfg
- General
- EnableFeature (default: true) — Master switch; disable to pause all Telegram forwarding without removing the plugin
- Telegram
- TelegramBotApiKey — Your bot token from @BotFather (e.g. 123456:ABC-DEF…)
- TelegramChatId — Target chat / group / channel ID (group IDs are negative)
- Filters
- RelayGlobalChat (default: true) — Forward global chat messages to Telegram
- RelayLocalChat (default: true) — Forward local chat messages to Telegram
- RelayNotifications (default: true) — Forward system notifications (joins, leaves, etc.) to Telegram
- Formatting
- MessageFormat (default: [{channel:short}] {username}: {message}) — Format string for chat messages sent to Telegram
- NotificationFormat (default: {message}) — Format string for system notifications sent to Telegram
Format Placeholders
The MessageFormat and NotificationFormat settings accept the following placeholders:
- {timestamp} — message time; accepts a C# DateTime format specifier (e.g. {timestamp:HH:mm})
- {channel} — full channel label use {channel:short} for just the first character (G / L)
- {username} — display name of the sender
- {message} — message body
- {distance} — distance in metres for local messages, empty for global/notifications
- {source} — intern
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: