https://github.com/frustrated-programmer/suggestioncollector
A discord.js bot that collects suggestions from a single channel and displays it into HTML pages.
https://github.com/frustrated-programmer/suggestioncollector
Last synced: 17 days ago
JSON representation
A discord.js bot that collects suggestions from a single channel and displays it into HTML pages.
- Host: GitHub
- URL: https://github.com/frustrated-programmer/suggestioncollector
- Owner: Frustrated-Programmer
- License: mit
- Created: 2020-02-19T23:20:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T16:55:33.000Z (almost 5 years ago)
- Last Synced: 2025-02-17T08:31:24.416Z (3 months ago)
- Language: JavaScript
- Size: 161 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Suggestion Collection
This 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.
*So it turns these discord messages into this fancy HTML page.*# Set up
1. Invite your bot that will run the code to the server. *Make sure the bot has the following perms*
\- Read Messages
\- Read Message History
2. Modify the config.json so the following values are set
```
token | Token of the bot.
debug | Whether you wish the bot to log data as it sorts through messages.
channel | The ID of the channel you wish to gather suggestions from.
upVoteEmoji | The ID of the emoji that counts as an UP vote.
downVoteEmoji | The ID of the emoji that counts as a DOWN vote.
tieGracePercent | The percentage of grace for a message's reactions to count as a tie.
validSuggestion | What classifies a message as a valid suggestion. Valid values are: "bot", "" "anyone"
maxSuggestionsPerPage | How many suggestions to allow on a page. Set to 0 for no limit.
ownerIDs | The array of IDs that the bot will respond to.
updateHours | How many hours need to pass before the bot tries to update the HTML pages again. Use "false" to disable auto updates.
```
3. Run the code. Any questions email me at [email protected]### Editing the base.html
It's simple to edit the html. All you need todo is make sure you have the following text *exactly*: ``*. This must be somewhere inside of a `` tag, as what my bot does is replaces that text with the data from the suggestions.