Skip to content

Commit

Permalink
fix text for bans
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Oct 20, 2024
1 parent f7e8a7a commit c2f0ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Ban {
const result = await TwitchService.getUnbanRequests()
const bans = await TwitchService.getBannedUsersCountByDate(moment().subtract(10, 'years').startOf('year').toDate())
if (result && bans) {
const text = `${bans.length} bans.` + result.length > 0 ? ` Hay ${result.length} solicitud/es de desbaneo pendientes de revisar (${this._getUserNames(result)})` : ' No hay solicitudes de desbaneo pendientes de revisar.'
const text = `${bans.length} bans.` + (result.length > 0 ? ` Hay ${result.length} solicitud/es de desbaneo pendientes de revisar (${this._getUserNames(result)})` : ' No hay solicitudes de desbaneo pendientes de revisar.')
await bot.say(target, text)
}
}
Expand Down

0 comments on commit c2f0ba9

Please sign in to comment.