{"id":18540176,"url":"https://github.com/frustrated-programmer/suggestioncollector","last_synced_at":"2025-05-15T03:34:52.773Z","repository":{"id":132509455,"uuid":"241748167","full_name":"Frustrated-Programmer/SuggestionCollector","owner":"Frustrated-Programmer","description":"A discord.js bot that collects suggestions from a single channel and displays it into HTML pages. ","archived":false,"fork":false,"pushed_at":"2020-06-22T16:55:33.000Z","size":165,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T08:31:24.416Z","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/Frustrated-Programmer.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":"2020-02-19T23:20:21.000Z","updated_at":"2020-06-22T16:55:35.000Z","dependencies_parsed_at":"2023-06-07T22:00:32.296Z","dependency_job_id":null,"html_url":"https://github.com/Frustrated-Programmer/SuggestionCollector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frustrated-Programmer%2FSuggestionCollector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frustrated-Programmer%2FSuggestionCollector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frustrated-Programmer%2FSuggestionCollector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frustrated-Programmer%2FSuggestionCollector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frustrated-Programmer","download_url":"https://codeload.github.com/Frustrated-Programmer/SuggestionCollector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254266067,"owners_count":22042035,"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":"2024-11-06T19:53:12.113Z","updated_at":"2025-05-15T03:34:52.750Z","avatar_url":"https://github.com/Frustrated-Programmer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Suggestion Collection\r\nThis bot is a bot that sorts through all the suggestion in a given channel and turns it into a fancy HTML page. Made specifically for the GTFO discord.\r\n\u003cbr\u003e\u003cspan\u003e*So it turns these discord messages into this fancy HTML page.*\u003c/span\u003e\u003cbr\u003e\u003cspan\u003e\u003cimg src=\"./DiscordScreenie.png\" height=\"400\"\u003e\u003cimg src=\"./Screenie.png\" height=\"400\"\u003e\u003c/span\u003e\r\n\r\n# Set up\r\n1. Invite your bot that will run the code to the server. *Make sure the bot has the following perms*\r\n  \u003cbr\u003e\\- Read Messages\r\n  \u003cbr\u003e\\- Read Message History\r\n2. Modify the config.json so the following values are set\r\n  ```\r\n  token                 | Token of the bot.\r\n  debug                 | Whether you wish the bot to log data as it sorts through messages. \r\n  channel               | The ID of the channel you wish to gather suggestions from.\r\n  upVoteEmoji           | The ID of the emoji that counts as an UP vote.\r\n  downVoteEmoji         | The ID of the emoji that counts as a DOWN vote.\r\n  tieGracePercent       | The percentage of grace for a message's reactions to count as a tie.\r\n  validSuggestion       | What classifies a message as a valid suggestion. Valid values are: \"bot\", \"\u003cinsert id of message sender\u003e\" \"anyone\"\r\n  maxSuggestionsPerPage | How many suggestions to allow on a page. Set to 0 for no limit.\r\n  ownerIDs              | The array of IDs that the bot will respond to.\r\n  updateHours           | How many hours need to pass before the bot tries to update the HTML pages again. Use \"false\" to disable auto updates.\r\n  ```\r\n3. Run the code. Any questions email me at contact@frustratedprogrammer.com\r\n\r\n### Editing the base.html\r\nIt's simple to edit the html. All you need todo is make sure you have the following text *exactly*: `\u003c!-- Divider --\u003e`*. This must be somewhere inside of a `\u003ctable\u003e\u003c/table\u003e` tag, as what my bot does is replaces that text with the data from the suggestions.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrustrated-programmer%2Fsuggestioncollector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrustrated-programmer%2Fsuggestioncollector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrustrated-programmer%2Fsuggestioncollector/lists"}