fixed bug in production

This commit is contained in:
Ale 2024-03-15 23:40:10 +01:00
parent ba6bb87b3f
commit 0a59132329

View file

@ -12,9 +12,9 @@ export default async function sendAsMember(message: Message, database: Database)
const pre_prefix = alter.prefix.split("text");
if (
message.content.startsWith(pre_prefix[0])
&& message.content.endsWith(pre_prefix[1]
&& message.content.length > 1)
) {
&& message.content.endsWith(pre_prefix[1])
&& message.content.length > 1
){
let actualContent: string = message.content;
actualContent = actualContent.slice(pre_prefix[0].length, actualContent.length - pre_prefix[1].length)