Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Privacy Command
Browse files Browse the repository at this point in the history
  • Loading branch information
Malachi authored and Malachi committed Jun 5, 2021
1 parent 12d9c24 commit 7808e64
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commands/util/dpod.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = class Invite extends Command {
}

async run(message, { channel, action }) {
count.cmdCount++
count.cmdRun(this.name, this.group, message)

let guildChannel = this.client.provider.get(message.guild, 'dpod')

Expand Down
34 changes: 34 additions & 0 deletions commands/util/privacy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const { Command } = require('discord.js-commando')
const config = require('$root/config.json')
const mission = require('$root/mission.json')
const count = require('$util/count')

module.exports = class Privacy extends Command {
constructor(client) {
super(client, {
name: 'privacy',
group: 'util',
aliases: ['data'],
memberName: 'privacy',
description: 'Report any and all bugs here',
clientPermissions: ['EMBED_LINKS'],
throttling: config.command_throttling.utilities
})
}

run(message) {
count.cmdRun(this.name, this.group, message)

let info = mission.other.privacy

message.embed({
title: info.title,
url: info.url,
description: info.info + config.invite,
color: config.embed_color,
timestamp: new Date(),
thumbnail: { url: config.pfp },
footer: { text: mission.credit }
})
}
}
4 changes: 4 additions & 0 deletions mission.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@
"support": {
"title": "Support?",
"info": "Join the community discord for advanced support with the bot and get a sneak peak into the development of this bot.\n"
},
"privacy": {
"title": "User Data & Privacy Policy",
"info": "This is an overview of the data we collect if you have any questions please join are support server to ask questions or have your data removed.\n**What Data we collect**\n__Personal Data:__\n●Your Discord ID\n●Command you have run\n●Guild ID command where run in\n__Guild Data:__ (Collected On Join)\n●Guild Name\n●Member Count\n●Guild ID\n**Why we collect Data:**\nWe collect data for usage statistics and bug catching. If you would like us to remove your data please join our support server and talk to a Dev. "
}
},

Expand Down

0 comments on commit 7808e64

Please sign in to comment.