瀏覽代碼

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)) {