소스 검색

Make command lowercase

denikson 6 년 전
부모
커밋
718f318450
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -141,7 +141,7 @@ client.on("message", m => {
     if (m.mentions.users.first().id == client.user.id) {
         let content = m.cleanContent.substring(
             `@${client.user.username} `.length
-        );
+        ).toLowerCase();
 
         for (let c in commands) {
             if (content.startsWith(c)) {