diff --git a/commands/message/core/help.js b/commands/message/core/help.js index 807ebcc..abf59a0 100644 --- a/commands/message/core/help.js +++ b/commands/message/core/help.js @@ -1,7 +1,7 @@ const { codeblock, highlight, icon, link } = require('../../../labscore/utils/markdown') const { createEmbed, formatPaginationEmbeds } = require('../../../labscore/utils/embed') -const { DISCORD_INVITE } = require('../../../labscore/constants') +const { DISCORD_INVITES } = require('../../../labscore/constants') const { paginator } = require('../../../labscore/client'); const { editOrReply } = require('../../../labscore/utils/message'); @@ -90,7 +90,7 @@ module.exports = { // Command overview pages.push({embeds:[ createEmbed("default", context, { - description: `Check pages for detailed command descriptions.\n` + codeblock("ansi", [(prefix + results.map((m)=>{return m.name}).splice(0, 10).join('\n' + prefix))]) + `\n${icon("question")} Need help with something else? Contact us via our ${link(DISCORD_INVITE, "Support Server")}.` + description: `Check pages for detailed command descriptions.\n` + codeblock("ansi", [(prefix + results.map((m)=>{return m.name}).splice(0, 10).join('\n' + prefix))]) + `\n${icon("question")} Need help with something else? Contact us via our ${link(DISCORD_INVITES.support, "Support Server")}.` }) ]}) diff --git a/commands/message/core/privacy.js b/commands/message/core/privacy.js new file mode 100644 index 0000000..1609824 --- /dev/null +++ b/commands/message/core/privacy.js @@ -0,0 +1,24 @@ +const { icon, timestamp, link } = require('../../../labscore/utils/markdown') +const { createEmbed } = require('../../../labscore/utils/embed') +const { editOrReply } = require('../../../labscore/utils/message'); +const { PRIVACY_POLICY_LAST_UPDATE, PRIVACY_POLICY_SECTIONS, DISCORD_INVITES, COLORS } = require('../../../labscore/constants'); + +module.exports = { + description: 'ping!', + name: 'privacy', + metadata: { + description: 'bot latency', + examples: ['ping'], + category: 'core', + usage: 'ping' + }, + run: async (context) => { + context.triggerTyping(); + return await editOrReply(context, + createEmbed("default", context, { + description: `${icon("rules")} **labsCore Privacy Policy**\n*Last Updated: ${timestamp(PRIVACY_POLICY_LAST_UPDATE, "f")}*\n\n${PRIVACY_POLICY_SECTIONS.join('\n\n')}\n\nIf you have any further questions, please contact us via our ${link(DISCORD_INVITES.privacy, "Support Server")}`, + color: COLORS.brand + }) + ) + }, +}; \ No newline at end of file diff --git a/labscore/constants.js b/labscore/constants.js index cedfb68..2b0ec0e 100644 --- a/labscore/constants.js +++ b/labscore/constants.js @@ -1,3 +1,16 @@ +module.exports.DISCORD_INVITES = Object.freeze({ + support: "https://discord.gg/8c4p6xcjru", + privacy: "https://discord.gg/sQs8FhcTGh" +}) + +module.exports.PRIVACY_POLICY_SECTIONS = [ + 'labsCore does not collect any sort of data about its users.', + 'If the bot encounters unexpected errors we report information about the server, channel, user and command/command arguments (excluding images) to a private log in order to assist with debugging and fixing the problem. You can reference the provided error ID in our support server for further details.', + `Images modified via our proprietary api are never stored outside of the channel you executed the command in.` +] + +module.exports.PRIVACY_POLICY_LAST_UPDATE = 1655325547140 + module.exports.COLORS = Object.freeze({ "error": 15548997, "success": 6411359, @@ -109,8 +122,6 @@ module.exports.GUILD_FEATURES = Object.freeze({ "BOT_DEVELOPER_EARLY_ACCESS": "<:i:903276631173509130> Forum Channels Early Access" }) -module.exports.DISCORD_INVITE = `https://discord.gg/8c4p6xcjru` - module.exports.TIKTOK_VOICES = [ { "name": "English AU - Female",