feat: adding color changing rule

This commit is contained in:
Ale 2023-09-05 20:34:33 +02:00
parent 680eeea7a1
commit c55fe93901
No known key found for this signature in database
GPG key ID: 284AFB134BB2E07D
2 changed files with 16 additions and 2 deletions

View file

@ -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"
}
}

View file

@ -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'> <color hex> | Allows you to change the color of your alter ( may be integrated with the website )"
}