{"id":25732781,"url":"https://github.com/web-temps/RedditBot-TemplateJS","last_synced_at":"2025-02-26T04:01:48.020Z","repository":{"id":43491818,"uuid":"291552425","full_name":"bwz3rbot/RedditMentionBot-Temlate","owner":"bwz3rbot","description":"This is a template for a Reddit bot in JavaScript. It uses Snoowrap with two requesters, one to create a messaging queue, and another to process the mentions.","archived":false,"fork":false,"pushed_at":"2020-10-03T17:10:34.000Z","size":31,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T18:03:55.044Z","etag":null,"topics":["api","bot","javascript","reddit","snoostorm","snoowrap","template","wrapper"],"latest_commit_sha":null,"homepage":"","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/bwz3rbot.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}},"created_at":"2020-08-30T21:09:33.000Z","updated_at":"2023-01-10T16:22:41.000Z","dependencies_parsed_at":"2022-09-14T09:40:32.444Z","dependency_job_id":null,"html_url":"https://github.com/bwz3rbot/RedditMentionBot-Temlate","commit_stats":null,"previous_names":["web-temps/redditbot-templatejs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwz3rbot%2FRedditMentionBot-Temlate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwz3rbot%2FRedditMentionBot-Temlate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwz3rbot%2FRedditMentionBot-Temlate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwz3rbot%2FRedditMentionBot-Temlate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwz3rbot","download_url":"https://codeload.github.com/bwz3rbot/RedditMentionBot-Temlate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240788751,"owners_count":19857696,"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":["api","bot","javascript","reddit","snoostorm","snoowrap","template","wrapper"],"created_at":"2025-02-26T04:01:07.754Z","updated_at":"2025-02-26T04:01:47.989Z","avatar_url":"https://github.com/bwz3rbot.png","language":"JavaScript","funding_links":[],"categories":["Bot Creation Services"],"sub_categories":["External Reddit Tools"],"readme":"# Reddit MentionBot-Template\nSnoowrap mention messaging queue\n\n## Table of Contents\n\n- [About](#about)\n- [Getting Started](#getting_started)\n- [Usage](#usage)\n\n## About \u003ca name = \"about\"\u003e\u003c/a\u003e\n\nThis is a template for a Reddit bot in JavaScript. It uses Snoowrap with two requesters, one to create a messaging queue, and another to process the mentions. If you've tried using Snoosorm to generate a stream from your inbox before, you may have run into a problem, where there is a need to utilize multiple requesters to complete API transactions. Well the fix is a messaging queue! This bot template is a simplified version of the ever popular Snoostorm library. It contains a messaging queue function (that Snoostorm was lacking!) to get around the problem of requiring many requesters.\n\n## Getting Started \u003ca name = \"getting_started\"\u003e\u003c/a\u003e\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\nThis application runs on NodeJS. You must have NodeJS to run it.\n\n### Installing\n\nA step by step series of examples that tell you how to get a development env running.\n\nDownload the source code...\n\nRun this command...\n\n```\nnpm install\n```\n\nOf course you will find these values at https://www.reddit.com/prefs/apps/\n```\nUSER_AGENT=''\nCLIENT_ID=''\nCLIENT_SECRET=''\nREDDIT_USER=''\nREDDIT_PASS=''\n```\n\nAnd begin coding your bot!\n\n## Usage \u003ca name = \"usage\"\u003e\u003c/a\u003e\n\nOpen up the file: src/service/BotService.js\n\nWrite your functions in this file, put your code within doSomething().\n\ndoSomething() will be called each time a new mention is received.\n\nIt will be passed a pre-fetched comment object, from your inbox.\n\ndoSomething() must return a Promise Object. The resulting function doesn't actually do anything with it, but to complete the promise chain, it is required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-temps%2FRedditBot-TemplateJS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-temps%2FRedditBot-TemplateJS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-temps%2FRedditBot-TemplateJS/lists"}