Skip to content

Commit eaf2c16

Browse files
committed
use Set instead of map for audio alert users
1 parent 21b3574 commit eaf2c16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bot/bot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { getTwitchToken, playAudio } from '@lib/utils/utils.js'
1919

2020
export class Bot {
2121
authProvider: RefreshingAuthProvider
22-
audioAlertUsers: Map<string, string>
22+
audioAlertUsers: Set<string>
2323
apiClient: ApiClient
2424
botID: string
2525
broadcasterID: string
@@ -42,7 +42,7 @@ export class Bot {
4242
this.authProvider = authProvider
4343
this.apiClient = apiClient
4444
this.commands = new Map()
45-
this.audioAlertUsers = new Map()
45+
this.audioAlertUsers = new Set(['89181064', '537326154']) // remove 89181064 after testing
4646
this.cooldownList = new Map()
4747
this.permitList = new Map()
4848
this.broadcasterID = process.env.TWITCH_ID ?? ''

0 commit comments

Comments
 (0)