This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: Add a dedicated
privacy
command
- Loading branch information
Showing
5 changed files
with
59 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
const Command = require('.'); | ||
const { MessageEmbed } = require('discord.js'); | ||
|
||
module.exports = new Command({ | ||
aliases: ['privacy'], | ||
description: "Review our privacy policy and related commands.", | ||
category: 'privacy', | ||
handler: async function () { | ||
// Load properties from the command context. | ||
const { message } = this; | ||
|
||
// Set the description. | ||
const description = [ | ||
"We take your privacy and data seriously!", | ||
"\nHere's the short version:", | ||
"- We'll never collect your real name or email address.", | ||
"- We only store the data we actually need to support the bot's features.", | ||
"- You can see what data we've collected at any time with the `show-me` command.", | ||
"- We'll never sell your information. To anyone. Ever.", | ||
"\nYou can read our [privacy statement](https://github.com/tanndev/silence-among-us#privacy) for details." | ||
].join('\n'); | ||
|
||
const disclaimer = [ | ||
"This privacy policy _only_ applies to the **official** Tanndev-hosted bot instances.", | ||
"If this instance is hosted by somebody else, they may not necessarily follow the same guidelines." | ||
].join('\n'); | ||
|
||
const commands = [require('./221-show-me'), require('./222-forget-me')] | ||
.map(command => `\t- ${command.toHelpText()}`) | ||
.join('\n'); | ||
|
||
// Generate the basic embed. | ||
const embed = new MessageEmbed() | ||
.setTitle("Silence Among Us - Privacy") | ||
.setURL('https://github.com/tanndev/silence-among-us#privacy') | ||
.setDescription(description) | ||
.addField('Related Commands', commands) | ||
.addField('Disclaimer', disclaimer); | ||
|
||
return message.channel.send(embed); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters