{"version":3,"file":"conditions.mjs","names":[],"sources":["../../src/await/conditions.ts"],"sourcesContent":["import type { IRCMessage } from \"~/message/irc/irc-message\";\nimport { NoticeMessage } from \"~/message/twitch-types/notice\";\n\nexport function matchingNotice(\n  channelName: string,\n  noticeIds: string[],\n): (message: IRCMessage) => boolean {\n  return (message: IRCMessage) => {\n    return (\n      message instanceof NoticeMessage &&\n      message.channel?.login === channelName &&\n      noticeIds.includes(message.id!)\n    );\n  };\n}\n"],"mappings":";;AAGA,SAAgB,eACd,aACA,WACkC;AAClC,SAAQ,YAAwB;AAC9B,SACE,mBAAmB,iBACnB,QAAQ,SAAS,UAAU,eAC3B,UAAU,SAAS,QAAQ,GAAI"}