Skip to content

Commit

Permalink
fix(commercial): remove event trigger on !commercial command
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Jan 4, 2024
1 parent 6bcbaff commit 293740a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/systems/commercial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
} from '../decorators.js';

import { getOwnerAsSender } from '~/helpers/commons/index.js';
import { eventEmitter } from '~/helpers/events/index.js';
import { error, warning } from '~/helpers/log.js';
import { addUIError } from '~/helpers/panel/alerts.js';
import defaultPermissions from '~/helpers/permissions/defaultPermissions.js';
Expand Down Expand Up @@ -68,7 +67,6 @@ class Commercial extends System {

try {
await twitch.apiClient?.asIntent(['broadcaster'], ctx => ctx.channels.startChannelCommercial(broadcasterId, commercial.duration as 30 | 60 | 90 | 120 | 150 | 180));
eventEmitter.emit('commercial', { duration: commercial.duration ?? 30 });
if (!_.isNil(commercial.message)) {
return [{ response: commercial.message, ...opts }];
}
Expand Down

0 comments on commit 293740a

Please sign in to comment.