2025-10-31 16:17:04 -04:00
|
|
|
# Message Relay Testing Instructions
|
|
|
|
|
|
|
|
|
|
## Current Configuration
|
|
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
- **Kosmi Room**: Configured via `RoomURL` in `matterbridge.toml`
|
|
|
|
|
- **IRC Server**: Configured via `Server` in `matterbridge.toml`
|
|
|
|
|
- **IRC Channel**: Configured via gateway `[[gateway.inout]]`
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
## Test 1: Kosmi --> IRC
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Steps
|
|
|
|
|
|
|
|
|
|
1. Open your Kosmi room in a browser
|
|
|
|
|
2. Type a test message (e.g., "Test message from Kosmi")
|
2025-10-31 16:17:04 -04:00
|
|
|
3. Press Enter to send
|
|
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Expected Logs
|
2025-10-31 16:17:04 -04:00
|
|
|
|
|
|
|
|
```
|
2026-05-12 22:01:25 -04:00
|
|
|
INFO Received message from Kosmi: [<timestamp>] username: message text
|
|
|
|
|
DEBUG Forwarding to Matterbridge channel=main account=kosmi.hyperspaceout
|
2025-10-31 16:17:04 -04:00
|
|
|
```
|
|
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Verification
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
The message should appear in your IRC channel with the configured `RemoteNickFormat`, typically:
|
2025-10-31 16:17:04 -04:00
|
|
|
```
|
2026-05-12 22:01:25 -04:00
|
|
|
[kosmi] <username> Test message from Kosmi
|
2025-10-31 16:17:04 -04:00
|
|
|
```
|
|
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
## Test 2: IRC --> Kosmi
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Steps
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
1. Connect to your IRC server and join the configured channel
|
|
|
|
|
2. Send a test message (e.g., "Test message from IRC")
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Expected Logs
|
2025-10-31 16:17:04 -04:00
|
|
|
|
|
|
|
|
```
|
2026-05-12 22:01:25 -04:00
|
|
|
DEBUG <= Sending message from #channel on irc.account to gateway
|
|
|
|
|
DEBUG => Sending message to Kosmi
|
2025-10-31 16:17:04 -04:00
|
|
|
```
|
|
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Verification
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
The message should appear in the Kosmi room with the configured format, typically:
|
2025-10-31 16:17:04 -04:00
|
|
|
```
|
2026-05-12 22:01:25 -04:00
|
|
|
[irc] <username> Test message from IRC
|
2025-10-31 16:17:04 -04:00
|
|
|
```
|
|
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
## Test 3: Jackbox Vote Detection (if enabled)
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Steps
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
1. In IRC or Kosmi, type: `thisgame++`
|
|
|
|
|
2. Check bot logs
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Expected Logs
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
```
|
|
|
|
|
DEBUG Detected vote from username: up (ticker="")
|
|
|
|
|
```
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
## Test 4: IRC Commands
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Steps
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
1. In IRC, type: `!votes`
|
|
|
|
|
2. Check for broadcast response
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Expected Response (if active session)
|
2025-10-31 16:17:04 -04:00
|
|
|
|
|
|
|
|
```
|
2026-05-12 22:01:25 -04:00
|
|
|
🗳️ Game Title • Today: X👍 Y👎 (Score: Z) • All-time: X👍 Y👎 (Score: Z)
|
2025-10-31 16:17:04 -04:00
|
|
|
```
|
|
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
## Watching Logs
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
```bash
|
|
|
|
|
# All logs
|
|
|
|
|
docker-compose logs -f
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
# Message-related logs only
|
|
|
|
|
docker-compose logs -f | grep -E "(Received|Sending|Forwarding|Detected)"
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
# Last 50 lines
|
|
|
|
|
docker-compose logs --tail=50
|
|
|
|
|
```
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
## Success Criteria
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
1. Messages sent in Kosmi appear in IRC
|
|
|
|
|
2. Messages sent in IRC appear in Kosmi
|
|
|
|
|
3. Usernames are displayed correctly with bridge prefix
|
|
|
|
|
4. Messages appear within 1-2 seconds
|
|
|
|
|
5. No errors in logs during normal relay
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
## Troubleshooting
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### No Messages Appearing
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
1. Check the container is running: `docker-compose ps`
|
|
|
|
|
2. Check for errors: `docker-compose logs --tail=100`
|
|
|
|
|
3. Verify both bridges are connected (look for success messages)
|
|
|
|
|
4. Restart if needed: `docker-compose restart`
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Messages Only Going One Direction
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
- **Kosmi --> IRC works, IRC --> Kosmi doesn't**: Check Kosmi WebSocket is connected
|
|
|
|
|
- **IRC --> Kosmi works, Kosmi --> IRC doesn't**: Check IRC connection status
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
### Message Formatting Issues
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
Message format is controlled by `RemoteNickFormat` in each bridge's config section. Default: `[{PROTOCOL}] <{NICK}> `
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
## Quick Commands
|
2025-10-31 16:17:04 -04:00
|
|
|
|
2026-05-12 22:01:25 -04:00
|
|
|
```bash
|
|
|
|
|
docker-compose up -d # Start
|
|
|
|
|
docker-compose logs -f # Follow logs
|
|
|
|
|
docker-compose down # Stop
|
|
|
|
|
docker-compose restart # Restart
|
|
|
|
|
docker-compose ps # Status
|
|
|
|
|
docker stats kosmi-irc-relay # Resource usage
|
2025-10-31 16:17:04 -04:00
|
|
|
```
|