Skip to content

Conversation

@konard
Copy link
Owner

@konard konard commented Sep 22, 2025

🧠 Neural Network Page Posting Feature

This PR implements the functionality requested in issue #45 to enable posting content to VK communities focused on neural networks, AI, and language models.

📋 Issue Reference

Fixes #45

✨ Implementation Details

New Features:

  • 🎯 Targeted Posting: Dedicated trigger for neural network/AI communities
  • ⚙️ Configurable Communities: JSON-based configuration in neural-network-communities.json
  • 🤖 AI-Focused Content: Multiple message variants specifically crafted for AI/ML communities
  • 🔄 Smart Duplicate Detection: Automatically detects and removes existing posts to avoid spam
  • ⏰ Scheduled Posting: Runs every 15 minutes (configurable)
  • 🛡️ Robust Error Handling: Handles VK API limitations, rate limiting, and access restrictions

Files Added:

  • triggers/neural-network-page-posts.js - Main posting trigger implementation
  • neural-network-communities.json - Community configuration file
  • NEURAL_NETWORK_POSTING.md - Complete feature documentation
  • __tests__/triggers/neural-network-page-posts.test.js - Unit tests

Modified Files:

  • index.js - Added neural network posting trigger to main bot loop

🚀 How to Use

  1. Configure Communities: Edit neural-network-communities.json to add VK community IDs
{
  "communities": [
    {
      "id": 123456789,
      "name": "AI Community",
      "description": "Community about artificial intelligence", 
      "enabled": true
    }
  ]
}
  1. Find Community IDs: Look at VK URLs like vk.com/club123456789 or vk.com/public123456789

  2. Bot Permissions: Ensure the bot has posting permissions in target communities

📝 Post Content Examples

The bot randomly selects from AI/ML-focused messages:

  • Information about neural networks and language models
  • Links to GPT bot services (DeepGPTBot)
  • Invitations for collaboration in AI field
  • Contact information for technical discussions

🧪 Testing

All functionality is covered by unit tests:

npm test __tests__/triggers/neural-network-page-posts.test.js

🔧 Technical Implementation

  • Configuration-driven: Communities loaded dynamically from JSON config
  • Error resilience: Handles various VK API error codes (210, 219, 15, 14, 10)
  • Rate limiting: Built-in delays and temporary community disabling
  • Memory efficient: Communities reloaded on each run for dynamic updates
  • Logging: Comprehensive logging for monitoring and debugging

📚 Documentation

See NEURAL_NETWORK_POSTING.md for complete usage instructions and configuration details.


🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #45
@konard konard self-assigned this Sep 22, 2025
Implements functionality to post content to VK communities focused on neural networks, AI, and language models.

Features:
- Configurable community list via neural-network-communities.json
- AI/ML-focused post content with multiple message variants
- Automatic duplicate detection and cleanup
- Comprehensive error handling for VK API limitations
- 15-minute posting interval (configurable)
- Unit tests for functionality verification

Files added:
- triggers/neural-network-page-posts.js - Main posting trigger
- neural-network-communities.json - Community configuration
- NEURAL_NETWORK_POSTING.md - Feature documentation
- __tests__/triggers/neural-network-page-posts.test.js - Unit tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] give the opportunity to make posts on the neural network page of the language model Add neural network page posting functionality Sep 22, 2025
@konard konard marked this pull request as ready for review September 22, 2025 19:49
@konard
Copy link
Owner Author

konard commented Sep 22, 2025

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

📎 Log file uploaded as GitHub Gist (228KB)
🔗 View complete solution draft log


Log automatically attached by solve.mjs with --attach-logs option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

give the opportunity to make posts on the neural network page of the language model

1 participant