32 lines
1.2 KiB
C#
32 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Bot.Assemble;
|
|
using Bot.CommandSystem;
|
|
using Bot.NonCommands;
|
|
using OpenMetaverse;
|
|
|
|
namespace Bot
|
|
{
|
|
/// <summary>
|
|
/// A extremely basic implementation of RLV just to pass checks on whether it is active or not in the viewer
|
|
/// </summary>
|
|
class RLV : BaseCommands, nCMD
|
|
{
|
|
[NotCommand(SourceType = Destinations.DEST_LOCAL | Destinations.DEST_AGENT)]
|
|
public void handle(string text, UUID User, string agentName, Destinations src, UUID originator)
|
|
{
|
|
if (text.Substring(0, 1) == "@")
|
|
{
|
|
string[] arguments = text.Substring(1).Split(new[] { ':', '=' });
|
|
if(arguments[0] == "version" || arguments[0] == "versionnew")
|
|
{
|
|
if (arguments.Length == 2)
|
|
BotSession.Instance.grid.Self.Chat("BotCore Bot v" + ASMInfo.BotVer + " (RLVb 0.0.1)", Convert.ToInt32(arguments[1]), ChatType.Normal);
|
|
else
|
|
MHE(src, originator, "BotCore Bot v" + ASMInfo.BotVer + " (RLVb 0.0.1)");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|