{"id":48139756,"url":"https://github.com/coderkearns/cs-memes-bot","last_synced_at":"2026-04-04T16:50:34.351Z","repository":{"id":338738272,"uuid":"1158936845","full_name":"coderkearns/cs-memes-bot","owner":"coderkearns","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-02T19:54:34.000Z","size":55,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-02T22:58:13.015Z","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/coderkearns.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":"2026-02-16T05:22:26.000Z","updated_at":"2026-03-02T19:54:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/coderkearns/cs-memes-bot","commit_stats":null,"previous_names":["coderkearns/cs-memes-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coderkearns/cs-memes-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderkearns%2Fcs-memes-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderkearns%2Fcs-memes-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderkearns%2Fcs-memes-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderkearns%2Fcs-memes-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderkearns","download_url":"https://codeload.github.com/coderkearns/cs-memes-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderkearns%2Fcs-memes-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31406338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":[],"created_at":"2026-04-04T16:50:33.920Z","updated_at":"2026-04-04T16:50:34.343Z","avatar_url":"https://github.com/coderkearns.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cs-memes-bot\n\nA simple Discord bot that automatically sends memes from Reddit at random intervals, with configurable curfew hours.\n\n## Features\n\n- 🎲 Fetches memes directly from Reddit\n- ⏰ Random posting intervals (configurable min/max wait time)\n- 🌙 Curfew hours - bot won't send memes during specified hours (e.g., 11pm - 9am)\n- 🎯 Support for multiple subreddits - picks randomly if configured as an array\n- 📊 Custom status - displays when the next meme is scheduled\n\n## Setup\n\n### 1. Prerequisites\n\n- Node.js (v16 or higher)\n- A Discord bot token ([Create one here](https://discord.com/developers/applications))\n\n### 2. Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/coderkearns/cs-memes-bot.git\ncd cs-memes-bot\n\n# Install dependencies\nnpm install\n```\n\n### 3. Configuration\n\n1. Copy `.env.example` to `.env`:\n   ```bash\n   cp .env.example .env\n   ```\n\n2. Edit `.env` and add your credentials:\n   ```env\n   DISCORD_TOKEN=your_discord_bot_token_here\n   CHANNEL_ID=your_channel_id_here\n   ```\n\n3. (Optional) Customize `config.js`:\n   ```javascript\n   module.exports = {\n       // Single subreddit\n       SUBREDDIT: \"wholesomememes\",\n       \n       // Or multiple subreddits (picks randomly)\n       // SUBREDDIT: [\"wholesomememes\", \"memes\", \"dankmemes\"],\n       \n       // Random wait time between posts (in milliseconds)\n       // Default: 30 minutes to 6 hours\n       RANDOM_WAIT: { min: 1000 * 60 * 30, max: 1000 * 60 * 60 * 6 },\n       \n       // Curfew hours (24-hour format)\n       // Bot won't send memes during these hours\n       // Default: 11pm (23:00) to 9am (09:00)\n       CURFEW_HOURS: { start: 23, end: 9 },\n\n      // How many memes to fetch at once\n      // Bot will send the one with the highest upvote count\n      // Default: 3\n      MEME_FETCH_COUNT: 3\n   }\n   ```\n\n### 4. Getting Your Channel ID\n\n1. Enable Developer Mode in Discord: Settings → Advanced → Developer Mode\n2. Right-click on the channel where you want memes sent\n3. Click \"Copy ID\"\n4. Paste this ID into your `.env` file\n\n### 5. Bot Permissions\n\nYour bot needs the following permissions:\n- View Channels\n- Send Messages\n- Embed Links\n\nInvite URL format:\n```\nhttps://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_CLIENT_ID\u0026permissions=52224\u0026scope=bot\n```\n\n## Usage\n\nStart the bot:\n```bash\nnpm start\n```\n\nThe bot will:\n1. Log in to Discord\n2. Wait a random amount of time (between configured min/max)\n3. Check if it's during curfew hours\n4. If not curfew, fetch and send a meme\n5. Repeat!\n\n## Configuration Options\n\n### SUBREDDIT\n- **Type**: `string` or `array of strings`\n- **Example**: `\"wholesomememes\"` or `[\"wholesomememes\", \"memes\", \"dankmemes\"]`\n- **Description**: The subreddit(s) to fetch memes from. If an array, a random subreddit is chosen each time.\n\n### RANDOM_WAIT\n- **Type**: `object { min: number, max: number }`\n- **Example**: `{ min: 1000 * 60 * 30, max: 1000 * 60 * 60 * 6 }`\n- **Description**: Random wait time in milliseconds between posts. Bot waits a random duration between min and max.\n\n### CURFEW_HOURS\n- **Type**: `object { start: number, end: number }`\n- **Example**: `{ start: 23, end: 9 }`\n- **Description**: Hours when the bot won't send memes (24-hour format). Supports overnight curfews (e.g., 23:00 to 09:00).\n\n### MEME_FETCH_COUNT\n- **Type**: `number`\n- **Example**: `3`\n- **Description**: Number of memes to fetch at once. The bot will automatically select the meme with the highest upvotes from the fetched batch.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderkearns%2Fcs-memes-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderkearns%2Fcs-memes-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderkearns%2Fcs-memes-bot/lists"}