kanadeko/Kuro

View on GitHub
commands/emote.js

Summary

Maintainability
A
1 hr
Test Coverage

Function run has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.run = function(msg, args) {
    if (args[0] === undefined) return msg.delete()
    if (!args[0].startsWith('<:')) return kuro.edit(msg, 'Not a valid emote')

    let id = args[0].substring(args[0].lastIndexOf(':') + 1, args[0].lastIndexOf('>'))
Severity: Minor
Found in commands/emote.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status