diff --git a/src/handlers/quoteStatsHandler.js b/src/handlers/quoteStatsHandler.js index ae9c44b..0e5db54 100644 --- a/src/handlers/quoteStatsHandler.js +++ b/src/handlers/quoteStatsHandler.js @@ -11,9 +11,7 @@ module.exports = async (messages) => { let name = message.content; name = name.substring(name.indexOf("~") + 1).trimStart(); - if (name.charAt(0) === " ") { - name = name.substring(0, name.indexOf(" ")); - } + name = name.substring(0, name.indexOf(" ")); if (name.includes(",")) { name = name.substring(0, name.indexOf(",")); }