using System; using System.Collections.Generic; using System.Text; using OpenMetaverse; namespace BSB.Commands.Group { public class GetGroupList : CoreGroupCommand_SmartReply_auto { public override string Helpfile { get { return "Returns a csv of known groups NAME=UUID,NAME=UUID... "; } } protected override string RunFunction() { string reply = ""; string addon = ""; foreach (KeyValuePair groupdata in bot.MyGroups) { reply += addon; reply += groupdata.Value.Name; reply += "="; reply += groupdata.Key; addon = ","; } return reply; } } }