{"id":26935854,"url":"https://github.com/alexabstreiter/weekly-generator","last_synced_at":"2026-03-07T19:31:21.973Z","repository":{"id":285234425,"uuid":"957458314","full_name":"alexabstreiter/weekly-generator","owner":"alexabstreiter","description":"Generates a weekly summary for an internal company chat on Discord using data from Pipedrive","archived":false,"fork":false,"pushed_at":"2025-03-30T13:07:18.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-07T01:19:39.591Z","etag":null,"topics":["ai","disocrd","notion","pipedrive","summary"],"latest_commit_sha":null,"homepage":"","language":"Python","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/alexabstreiter.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-30T12:31:05.000Z","updated_at":"2025-04-16T09:43:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"353b4898-3d1d-457f-8ce1-b9242fe37b5c","html_url":"https://github.com/alexabstreiter/weekly-generator","commit_stats":null,"previous_names":["alexabstreiter/weekly-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexabstreiter/weekly-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexabstreiter%2Fweekly-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexabstreiter%2Fweekly-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexabstreiter%2Fweekly-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexabstreiter%2Fweekly-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexabstreiter","download_url":"https://codeload.github.com/alexabstreiter/weekly-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexabstreiter%2Fweekly-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30227785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ai","disocrd","notion","pipedrive","summary"],"created_at":"2025-04-02T12:19:44.365Z","updated_at":"2026-03-07T19:31:21.303Z","avatar_url":"https://github.com/alexabstreiter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Summary Bot\n\nA Discord bot that extracts messages from all channels over the last 7 days and updates from Pipedrive. Then it uses OpenAI models to generate summaries, which are then printed to the console and saved to Notion.\n\u003cimg width=\"1179\" alt=\"Screenshot 2025-03-30 at 15 04 32\" src=\"https://github.com/user-attachments/assets/f50c9d4a-cb46-49be-8603-f9e787f1d455\" /\u003e\n\n## Features\n\n- Extracts all messages from all channels for the past 7 days\n- Properly handles threaded messages and organizes them hierarchically\n- Customizes prompts for different channel types (announcements, general, help, development, etc.)\n- Uses OpenAI models to generate comprehensive summaries\n- Prints summaries to the console and saves them to Notion\n\n## Prerequisites\n\n- Python 3.8 or higher\n- A Discord bot token\n- An OpenAI API key \n- A Pipedrive API key \n- A Notion API key \n\n## Setup\n\n1. Clone this repository or download the source code\n2. Install dependencies:\n   ```\n   pip install -r requirements.txt\n   ```\n3. Configure the bot:\n   - Edit the `.env` file to include your Discord token and OpenAI API key\n   - Make sure your Discord bot has the necessary permissions (see below)\n\n## Discord Bot Permissions\n\nYour Discord bot needs the following permissions:\n- Read Message History\n- Read Messages/View Channels\n- Send Messages (optional, this bot doesn't send messages to Discord)\n\nWhen creating your bot on the [Discord Developer Portal](https://discord.com/developers/applications), make sure to enable the following \"Privileged Gateway Intents\":\n- Presence Intent (optional)\n- Server Members Intent (optional)\n- Message Content Intent (required)\n\n## Running the Bot\n\n```\npython run.py\n```\n\nThe bot will connect to Discord, extract messages from all channels in all servers it has access to, generate summaries using GPT-4o, and print them to the console.\n\nAfter processing all channels and threads, the bot will automatically exit.\n\n## Customization\n\nYou can customize the bot by editing the following variables in the `.env` file:\n- `DAYS_TO_LOOK_BACK`: Number of days to look back for messages (default: 7)\n\nFor more advanced customization, you can modify the channel-specific prompts in the `generate_summary.py`.\n\n## Limitations\n\n- The Discord API limits the rate at which messages can be fetched, so processing large servers may take time\n- GPT-4o has a context limit, so very active channels may have their messages truncated for summarization\n- The bot uses the OpenAI API, so be aware of usage costs\n\n## License\n\nMIT \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexabstreiter%2Fweekly-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexabstreiter%2Fweekly-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexabstreiter%2Fweekly-generator/lists"}