SecondBot/Core/Commands/Group/getGroupList.cs
2021-02-14 02:19:38 +00:00

20 lines
602 B
C#

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 "Gets a list of groups Json encoded"; } }
protected override string RunFunction()
{
foreach (KeyValuePair<UUID, OpenMetaverse.Group> groupdata in bot.MyGroups)
{
collection.Add(groupdata.Value.Name, groupdata.Key.ToString());
}
return "grouplist=loaded";
}
}
}