22 lines
693 B
C#
22 lines
693 B
C#
using System;
|
|
using System.Linq;
|
|
using Microsoft.VisualBasic.CompilerServices;
|
|
using OpenMetaverse;
|
|
|
|
namespace BSB.Commands.Group
|
|
{
|
|
class GroupchatHistory : CoreGroupCommand_SmartReply_Group_auto
|
|
{
|
|
public override string Helpfile { get { return "Returns the chat history for the selected group [ARG 2] via smart reply [ARG 1]"; } }
|
|
protected override string RunFunction(UUID targetgroup)
|
|
{
|
|
int entry = 1;
|
|
foreach(string A in bot.GetGroupchat(targetgroup))
|
|
{
|
|
collection.Add(entry.ToString(),A);
|
|
entry++;
|
|
}
|
|
return "group="+targetgroup.ToString()+"";
|
|
}
|
|
}
|
|
}
|