lowercase

This commit is contained in:
Henry Hiles 2025-11-07 11:03:35 -05:00
commit 72a09af340
No known key found for this signature in database
2 changed files with 11 additions and 8 deletions

View file

@ -8,6 +8,7 @@ import "package:shelf_router/shelf_router.dart";
void main(List<String> argsRaw) async {
final container = ProviderContainer();
final isDebug = true;
final handler = const Pipeline()
.addMiddleware(logRequests())
@ -53,7 +54,9 @@ void main(List<String> argsRaw) async {
);
final server = HttpServer.listenOn(
await ServerSocket.bind(
isDebug
? await ServerSocket.bind(InternetAddress.loopbackIPv4, 8080)
: await ServerSocket.bind(
InternetAddress(
"/var/run/cozybot/socket",
type: InternetAddressType.unix,

View file

@ -10,7 +10,7 @@ class RecordController extends Notifier<String> {
message,
_,
) {
if (userstate.username == "Streamlabs") {
if (userstate["username"] == "streamlabs") {
final match = RegExp(
r"\d+[Ww]?-\d+[Ll]?",
).allMatches(message).lastOrNull;