Skip to content

Commit

Permalink
feat: add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wvffle committed Sep 19, 2023
1 parent e2cdea8 commit 1e243bd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Factorio <-> Telegram Bridge

This bridge uses RCON to forward messages from Telegram to Factorio and Factorio's console log file to forward messages from Factorio to Telegram

## Usage
To use the program, you need to set some required options/environment variables:
```
Option Env var Description
-t, --telegram-token TELEGRAM_TOKEN Telegram bot token
-c, --telegram-chat-id TELEGRAM_CHAT_ID Telegram chat id
-h, --factorio-rcon-host FACTORIO_RCON_HOST Factorio RCON host
-p, --factorio-rcon-password FACTORIO_RCON_PASSWORD Factorio RCON password
-l, --factorio-log-file FACTORIO_LOG_FILE Factorio console log file
```

### Factorio Friday Facts

When `--fff file_path` option is set, the bridge will check for new FFFs and send them to both chats. The file contains the latest title of the Factorio Friday Facts post in order to send the info about the FFF only once.

```
Option Env var Description
--fff FFF Factorio Friday Facts Cache File. If set, the bridge will check for new FFFs and send them to the chat [env: FFF=]
```

0 comments on commit 1e243bd

Please sign in to comment.