Skip to content

Commit

Permalink
Forces messages to be analyzed to become lowercase to overcome Capita…
Browse files Browse the repository at this point in the history
…l letters in messages
  • Loading branch information
XLuma committed Sep 30, 2022
1 parent fb17c5b commit b27210c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function randomIntFromInterval(min: any, max: any) { // min and max included
`${hours} - ${item.as(LiveChatTextMessage).author?.name.toString()}:\n` +
`${item.as(LiveChatTextMessage).message.toString()}\n`
);
var text = item.as(LiveChatTextMessage).message.toString();
var text = item.as(LiveChatTextMessage).message.toString().toLowerCase();
if (text in buttons.buttons)
{
if (text == "start")
Expand Down

0 comments on commit b27210c

Please sign in to comment.