{"id":25241333,"url":"https://github.com/mahmutmft/pdf-file-forwarder","last_synced_at":"2025-10-18T08:06:04.553Z","repository":{"id":265536099,"uuid":"896221051","full_name":"mahmutmft/pdf-file-forwarder","owner":"mahmutmft","description":"Discord bot for automating PDF sharing and file management.","archived":false,"fork":false,"pushed_at":"2024-11-29T21:32:07.000Z","size":2608,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T21:02:49.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahmutmft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-29T20:08:04.000Z","updated_at":"2025-02-03T00:43:05.000Z","dependencies_parsed_at":"2024-11-29T20:40:12.450Z","dependency_job_id":null,"html_url":"https://github.com/mahmutmft/pdf-file-forwarder","commit_stats":null,"previous_names":["mahmutmft/pdf-file-forwarder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmutmft%2Fpdf-file-forwarder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmutmft%2Fpdf-file-forwarder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmutmft%2Fpdf-file-forwarder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmutmft%2Fpdf-file-forwarder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahmutmft","download_url":"https://codeload.github.com/mahmutmft/pdf-file-forwarder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247394838,"owners_count":20932013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-11T21:03:29.074Z","updated_at":"2025-10-18T08:05:59.500Z","avatar_url":"https://github.com/mahmutmft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📄 PDF File Forwarder Bot 🤖\n\nA **powerful and reliable Discord bot** for automatically forwarding PDF files from one channel to another, with embedded messages and error handling.\n\n## ✨ Features\n\n- 📂 Automatic PDF file detection and forwarding\n- 🎨 Beautiful embedded messages with file information\n- 🔒 Secure environment variable configuration\n- 🛡️ Robust error handling\n- 🔄 Easy deployment process\n\n## 🛠️ Requirements\n\n- **Node.js**: v16.9.0 or higher\n- **Discord Bot Token**: From [Discord Developer Portal](https://discord.com/developers/applications)\n- **Channel IDs**: Source and target channel IDs from your Discord server\n\n## 🚀 Quick Start\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/your-username/pdf-file-forwarder-bot.git\n   cd pdf-file-forwarder-bot\n   ```\n\n2. **Install dependencies**\n   ```bash\n   npm install\n   ```\n\n3. **Configure environment variables**\n   ```bash\n   cp .env.example .env\n   ```\n   Edit the `.env` file with your configuration:\n   ```env\n   DISCORD_BOT_TOKEN=your_bot_token_here\n   SOURCE_CHANNEL_ID=your_source_channel_id\n   TARGET_CHANNEL_ID=your_target_channel_id\n   PREFIX=!\n   ```\n\n4. **Start the bot**\n   ```bash\n   # Production\n   npm start\n\n   # Development with auto-reload\n   npm run dev\n   ```\n\n## 🔧 Configuration\n\n### Bot Token\n1. Go to [Discord Developer Portal](https://discord.com/developers/applications)\n2. Create a new application\n3. Navigate to the \"Bot\" section\n4. Click \"Reset Token\" to get your bot token\n5. Enable necessary Privileged Gateway Intents\n\n### Channel IDs\n1. Enable Developer Mode in Discord (User Settings \u003e App Settings \u003e Advanced)\n2. Right-click any channel and select \"Copy ID\"\n\n### Bot Intents\n1. Go to [Discord Developer Portal](https://discord.com/developers/applications)\n2. Select your bot application\n3. Click on \"Bot\" in the left sidebar\n4. Scroll down to \"Privileged Gateway Intents\"\n5. Enable these required intents:\n   - MESSAGE CONTENT INTENT\n   - SERVER MEMBERS INTENT\n   - PRESENCE INTENT\n\n\u003e ⚠️ **Important**: Your bot needs these intents to function properly. Without them, the bot will fail to connect.\n\n## 🛡️ Security\n\n- Never commit your `.env` file\n- Keep your bot token private\n- Regularly rotate your bot token if compromised\n- Use environment variables for sensitive data\n\n## 🔍 Troubleshooting\n\n### Common Issues\n\n1. **Bot doesn't start**\n   - Check if Node.js version is 16.9.0 or higher\n   - Verify environment variables are set correctly\n   - Ensure all dependencies are installed\n\n2. **Bot doesn't forward files**\n   - Verify channel IDs are correct\n   - Check bot permissions in both channels\n   - Ensure bot has necessary intents enabled\n\n## 📚 Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Push to the branch\n5. Open a Pull Request\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🤝 Support\n\nIf you need help or want to report issues:\n- Open an [issue](https://github.com/mahmutmft/pdf-file-forwarder/issues)\n\n---\n\n\u003cdiv align=\"center\"\u003e\n    \u003cp\u003e\n        \u003ca href=\"https://github.com/mahmutmft\"\u003e\n            \u003cimg src=\"https://img.shields.io/badge/GitHub-mahmutmft-blue?style=flat-square\u0026logo=github\" alt=\"GitHub\"\u003e\n        \u003c/a\u003e\n        \u003ca href=\"https://github.com/mahmutmft/pdf-file-forwarder/blob/main/LICENSE\"\u003e\n            \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg?style=flat-square\" alt=\"License\"\u003e\n        \u003c/a\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Made%20with-❤️-red?style=flat-square\" alt=\"Made with love\"\u003e\n    \u003c/p\u003e\n    \u003cp\u003e© 2024 Mahmut. All rights reserved.\u003c/p\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmutmft%2Fpdf-file-forwarder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahmutmft%2Fpdf-file-forwarder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmutmft%2Fpdf-file-forwarder/lists"}