fixed bug in production
This commit is contained in:
parent
ba6bb87b3f
commit
0a59132329
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue