From 3e5a1a3582ce1fa91a15efa3bb76a75e5036f40c Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Thu, 23 Nov 2023 05:42:33 +0100 Subject: Moderation bot work --- Bot/Commands/CreateSystemCommand.cs | 2 +- PluralContactBotPoC.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bot/Commands/CreateSystemCommand.cs b/Bot/Commands/CreateSystemCommand.cs index 4a7d646..6d2cb3a 100644 --- a/Bot/Commands/CreateSystemCommand.cs +++ b/Bot/Commands/CreateSystemCommand.cs @@ -37,7 +37,7 @@ public class CreateSystemCommand(IServiceProvider services, HomeserverProviderSe var state = ctx.Room.GetMembersAsync(); await foreach (var member in state) { - sysData.Members.Add(member.UserId); + sysData.Members.Add(member.StateKey); } await ctx.Room.SendStateEventAsync("m.room.name", new RoomNameEventContent() { diff --git a/PluralContactBotPoC.csproj b/PluralContactBotPoC.csproj index cd549f9..664ff49 100644 --- a/PluralContactBotPoC.csproj +++ b/PluralContactBotPoC.csproj @@ -23,7 +23,7 @@ - + -- cgit 1.5.1