36 lines
1.3 KiB
TypeScript
36 lines
1.3 KiB
TypeScript
import config from '../../config.ts';
|
|
import { dbClient } from '../db.ts';
|
|
import {
|
|
// Discordeno deps
|
|
DiscordenoMessage,
|
|
// Log4Deno deps
|
|
log,
|
|
LT,
|
|
} from '../../deps.ts';
|
|
import { infoColor1 } from '../commandUtils.ts';
|
|
|
|
export const privacy = (message: DiscordenoMessage) => {
|
|
// Light telemetry to see how many times a command is being run
|
|
dbClient.execute(`CALL INC_CNT("privacy");`).catch((e) => {
|
|
log(LT.ERROR, `Failed to call stored procedure INC_CNT: ${JSON.stringify(e)}`);
|
|
});
|
|
|
|
message.send({
|
|
embeds: [{
|
|
color: infoColor1,
|
|
title: 'Privacy Policy',
|
|
fields: [{
|
|
name: 'The Artificer does not track or collect user information via Discord.',
|
|
value:
|
|
`The only user submitted information that is stored is submitted via the \`${config.prefix}report\` command. This information is only stored for a short period of time in a location that only the Developer of The Artificer can see.
|
|
|
|
For more details, please check out the Privacy Policy on the GitHub [here](https://github.com/Burn-E99/TheArtificer/blob/master/PRIVACY.md).
|
|
|
|
Terms of Service can also be found on GitHub [here](https://github.com/Burn-E99/TheArtificer/blob/master/TERMS.md).`,
|
|
}],
|
|
}],
|
|
}).catch((e) => {
|
|
log(LT.ERROR, `Failed to send message: ${JSON.stringify(message)} | ${JSON.stringify(e)}`);
|
|
});
|
|
};
|