From 5182a90ed477525a104bea5c614823fc17affd9f Mon Sep 17 00:00:00 2001 From: Matt Gabrenya Date: Thu, 26 May 2022 14:21:25 -0400 Subject: [PATCH 1/2] feat(api): update default settings values to remove references to 'TEC' and 'Token Engineering Commons' --- packages/api/src/database/migrations/00_initial_settings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/database/migrations/00_initial_settings.ts b/packages/api/src/database/migrations/00_initial_settings.ts index 30a1e06d3..b9202681d 100644 --- a/packages/api/src/database/migrations/00_initial_settings.ts +++ b/packages/api/src/database/migrations/00_initial_settings.ts @@ -92,13 +92,13 @@ const settings = [ { key: 'PRAISE_SUCCESS_DM', value: - '**👏 Congratulations! You have been Praised! 👏**\n[View your praise in the TEC]({praiseURL})\n**Thank you** for supporting the Token Engineering Commons!', + '**👏 Congratulations! You have been Praised! 👏**\n[View your praise]({praiseURL})\n**Thank you** for supporting the community!', type: 'Textarea', }, { key: 'PRAISE_ACCOUNT_NOT_ACTIVATED_ERROR_DM', value: - "**You were just [praised in the TEC](praiseURL)**\nIt looks like you haven't activated your account... To activate your account, use the `/praise-activate` command in the server.", + "**You were just [praised](praiseURL)**\nIt looks like you haven't activated your account... To activate your account, use the `/praise-activate` command in the server.", type: 'Textarea', }, { From 2e032a486c3753a063c4c29b9fca228f42b956fd Mon Sep 17 00:00:00 2001 From: Matt Gabrenya Date: Thu, 26 May 2022 14:22:44 -0400 Subject: [PATCH 2/2] fix: replace all references to old /praise-activate command with new /activate command --- packages/api/src/database/migrations/00_initial_settings.ts | 4 ++-- packages/discord-bot/src/utils/praiseEmbeds.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/api/src/database/migrations/00_initial_settings.ts b/packages/api/src/database/migrations/00_initial_settings.ts index b9202681d..263261171 100644 --- a/packages/api/src/database/migrations/00_initial_settings.ts +++ b/packages/api/src/database/migrations/00_initial_settings.ts @@ -50,7 +50,7 @@ const settings = [ { key: 'PRAISE_ACCOUNT_NOT_ACTIVATED_ERROR', value: - '**❌ Account Not Activated**\nYour account is not activated in the praise system. Unactivated accounts can not praise users. Use the `/praise-activate` command to activate your praise account and to link your eth address.', + '**❌ Account Not Activated**\nYour account is not activated in the praise system. Unactivated accounts can not praise users. Use the `/activate` command to activate your praise account and to link your eth address.', type: 'Textarea', }, { @@ -98,7 +98,7 @@ const settings = [ { key: 'PRAISE_ACCOUNT_NOT_ACTIVATED_ERROR_DM', value: - "**You were just [praised](praiseURL)**\nIt looks like you haven't activated your account... To activate your account, use the `/praise-activate` command in the server.", + "**You were just [praised](praiseURL)**\nIt looks like you haven't activated your account... To activate your account, use the `/activate` command in the server.", type: 'Textarea', }, { diff --git a/packages/discord-bot/src/utils/praiseEmbeds.ts b/packages/discord-bot/src/utils/praiseEmbeds.ts index 8777de896..db1604e49 100644 --- a/packages/discord-bot/src/utils/praiseEmbeds.ts +++ b/packages/discord-bot/src/utils/praiseEmbeds.ts @@ -193,7 +193,7 @@ export const notActivatedDM = async (msgUrl: string): Promise => { .setDescription(msg.replace('{praiseURL}', msgUrl)); } return new MessageEmbed().setDescription( - `**[YOU HAVE BEEN PRAISED](${msgUrl})\nPRAISE ACCOUNT NOT ACTIVATED. USE \`/praise-activate\` TO ACTIVATE YOUR ACCOUNT. (message not set)` + `**[YOU HAVE BEEN PRAISED](${msgUrl})\nPRAISE ACCOUNT NOT ACTIVATED. USE \`/activate\` TO ACTIVATE YOUR ACCOUNT. (message not set)` ); };