From c55fe93901ec58d36882bd40d49ad930b0fd554c Mon Sep 17 00:00:00 2001 From: Ale Date: Tue, 5 Sep 2023 20:34:33 +0200 Subject: [PATCH] feat: adding color changing rule --- src/commands/colorAlterChange.ts | 15 ++++++++++++++- src/commands/help.ts | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/commands/colorAlterChange.ts b/src/commands/colorAlterChange.ts index 85b0824..a9207c6 100644 --- a/src/commands/colorAlterChange.ts +++ b/src/commands/colorAlterChange.ts @@ -1 +1,14 @@ -export async function colorAlterChange(userId: string, args: string[]){} +import { AlterRepo } from "../repositories/AlterRepo" + +export async function colorAlterChange(userId: string, args: string[]){ + const alterRepo = new AlterRepo(); + + if (args.length == 2){ + const alterName = args[0]; + const alterColor = args[1]; + + + + return "The Alter's colour has been changed" + } +} diff --git a/src/commands/help.ts b/src/commands/help.ts index 05153c5..4314b71 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -5,5 +5,6 @@ export function returnHelpText() { "The currently available commands are : \n" + "- list | allows you to see your currently available alters.\n" + "- create <'name of the alter'> <'your alter s tag'>| Allows you to create your Alters\n" + - "- avatar <'Alter's name'> <'picture url'> | Allows you to edit your alter's profile picture" + "- avatar <'Alter's name'> <'picture url'> | Allows you to edit your alter's profile picture" + + "- color <'Alter's name'> | Allows you to change the color of your alter ( may be integrated with the website )" }