packages/irc2as/src/as-emitter.js
File as-emitter.js
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Wontfix
Wontfix
const EVENT_INCOMING = "incoming",
EVENT_ERROR = "error";
class ASTemplates {
constructor(events, server) {
Function privMsg
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
privMsg(nick, target, content) {
let type, message;
if (content.startsWith("+\u0001ACTION ")) {
type = "me";
message = content
Function role
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
role(type, nick, target, role, channel) {
this.emitEvent(EVENT_INCOMING, {
context: "irc",
type: type,
actor: {