From 986a24e2cdab43afdbd72b5db386c38fbc50d864 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sat, 18 Jul 2020 14:00:18 +0100 Subject: [PATCH] adds some more info to groupaddrole to help with testing --- Core/Commands/Group/GroupAddRole.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/Commands/Group/GroupAddRole.cs b/Core/Commands/Group/GroupAddRole.cs index ca15662..ddedfad 100644 --- a/Core/Commands/Group/GroupAddRole.cs +++ b/Core/Commands/Group/GroupAddRole.cs @@ -26,11 +26,12 @@ namespace BSB.Commands.Group if(reply.Members.ContainsKey(target_avatar) == false) { bot.GetClient.Groups.AddToRole(target_group, target_role, target_avatar); + ConsoleLog.Info("Role added to avatar: " + target_avatar.ToString() + ""); base.Callback(args, e, true); } else { - ConsoleLog.Info("Member not in group to get role, passing to invite"); + ConsoleLog.Info("{GroupAddRole} Member not in group to get role, passing to invite"); bot.GetCommandsInterface.Call("GroupInvite", String.Join("~#~", args), caller, "~#~"); base.Callback(args, e, true); } @@ -77,6 +78,7 @@ namespace BSB.Commands.Group if (bot.CreateAwaitEventReply("groupmembersreply", this, args) == true) { bot.GetClient.Groups.RequestGroupMembers(target_group); + ConsoleLog.Info("Requesting group membership wait for callback"); return true; } else