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