Compare commits
2 commits
0edf41c792
...
3a5b5c216d
Author | SHA1 | Date | |
---|---|---|---|
3a5b5c216d | |||
bdc797d5c1 |
3 changed files with 8 additions and 6 deletions
10
CLAUDE.md
10
CLAUDE.md
|
@ -18,10 +18,12 @@ When creating, modifying, or removing plugins:
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
After every session that contains changes to files:
|
**CRITICAL**: After making ANY changes to code files, you MUST run these commands in order:
|
||||||
|
|
||||||
1. Check files are properly formatted running `make format`
|
1. **Format code**: `make format` - Format all code according to project standards
|
||||||
2. Check code style and linting: Run `make lint`
|
2. **Lint code**: `make lint` - Check code style and quality (must show "0 issues")
|
||||||
3. Test the plugin functionality: Run `make test`
|
3. **Run tests**: `make test` - Run all tests to ensure functionality works
|
||||||
4. Verify documentation accuracy
|
4. Verify documentation accuracy
|
||||||
5. Ensure all examples work as described
|
5. Ensure all examples work as described
|
||||||
|
|
||||||
|
**These commands are MANDATORY after every code change, no exceptions.**
|
||||||
|
|
|
@ -236,7 +236,7 @@ func (t *TelegramPlatform) SendMessage(msg *model.Message) error {
|
||||||
"chat_id": chatID,
|
"chat_id": chatID,
|
||||||
"text": msg.Text,
|
"text": msg.Text,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set parse_mode based on plugin preference or default to Markdown
|
// Set parse_mode based on plugin preference or default to Markdown
|
||||||
if msg.Raw != nil && msg.Raw["parse_mode"] != nil {
|
if msg.Raw != nil && msg.Raw["parse_mode"] != nil {
|
||||||
// Plugin explicitly set parse_mode
|
// Plugin explicitly set parse_mode
|
||||||
|
|
|
@ -117,4 +117,4 @@ func TestTwitterExpander_OnMessage(t *testing.T) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue