feat: adding color changing

This commit is contained in:
Ale 2023-09-05 20:07:46 +02:00
parent 28ed823e2b
commit 680eeea7a1
No known key found for this signature in database
GPG key ID: 284AFB134BB2E07D
4 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1 @@
export async function colorAlterChange(userId: string, args: string[]){}

View file

@ -0,0 +1 @@
export function colorAlterChange(userId: string, args: string[]){}

View file

@ -13,10 +13,11 @@ client.on("ready", async () => {
client.on("messageCreate", async (message: Message) => {
try{if (!message.author) {await client.users.fetch(message.authorId)} }
catch(e){console.log(e)}
if (message === undefined) {return}
if (message.author?.bot) {}
else {
if (message?.content.startsWith(config.prefix)) {
if (message.content.startsWith(config.prefix)) {
commandHandler(message, config.prefix);
}
else {

View file

@ -4,6 +4,7 @@ import { listAlters } from "../commands/listAlters"
import { createAlter } from "../commands/createAlter"
import { deleteAlter } from "../commands/deleteAlter"
import { avatarAlterChange } from "../commands/avatarAlterChange"
import { colorAlterChange } from "../commands/colorAlterChange"
import { split } from "shlex"
export async function commandHandler(message : Message, prefix : String) {
@ -34,6 +35,7 @@ export async function commandHandler(message : Message, prefix : String) {
break
}
case "color" : {
await message.reply(await colorAlterChange(message.author.id, args));
break
}
}