asdqwex/discobot

View on GitHub
src/modules/meme.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function onMessage has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    onMessage: function (bot, user, userID, channelID, message, rawEvent) {
      const imgParts = message.split('"')
      const memeType = imgParts[0].split(' ')[1]
      const memeList = {
        '10guy': 101440,
Severity: Major
Found in src/modules/meme.js - About 2 hrs to fix

    Function onMessage has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        onMessage: function (bot, user, userID, channelID, message, rawEvent) {
    Severity: Minor
    Found in src/modules/meme.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status