namepsace updates
This commit is contained in:
parent
3b1904293c
commit
7752d7cd9c
210 changed files with 1159 additions and 1130 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
using BetterSecondBot;
|
using BetterSecondBot;
|
||||||
using BetterSecondBotShared.Json;
|
using BetterSecondBotShared.Json;
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using BetterSecondBotShared.IO;
|
||||||
using BetterSecondBotShared.Json;
|
using BetterSecondBotShared.Json;
|
||||||
using BetterSecondBotShared.logs;
|
using BetterSecondBotShared.logs;
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using System;
|
using System;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
using BetterSecondBotShared.Json;
|
using BetterSecondBotShared.Json;
|
||||||
using BetterSecondBotShared.logs;
|
using BetterSecondBotShared.logs;
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using static BetterSecondBot.Program;
|
using static BetterSecondBot.Program;
|
||||||
|
|
||||||
|
|
@ -14,22 +14,22 @@ namespace BetterSecondBot
|
||||||
protected bool exitBot = false;
|
protected bool exitBot = false;
|
||||||
public SecondBot Bot;
|
public SecondBot Bot;
|
||||||
|
|
||||||
protected void keep_alive()
|
protected void keep_alive()
|
||||||
{
|
{
|
||||||
while (Bot.KillMe == false)
|
while (Bot.KillMe == false)
|
||||||
{
|
{
|
||||||
string NewStatusMessage = Bot.GetStatus();
|
string NewStatusMessage = Bot.GetStatus();
|
||||||
if (NewStatusMessage != Bot.LastStatusMessage)
|
if (NewStatusMessage != Bot.LastStatusMessage)
|
||||||
{
|
{
|
||||||
NewStatusMessage = NewStatusMessage.Trim();
|
NewStatusMessage = NewStatusMessage.Trim();
|
||||||
if (NewStatusMessage.Replace(" ", "") != "")
|
if (NewStatusMessage.Replace(" ", "") != "")
|
||||||
{
|
{
|
||||||
Bot.LastStatusMessage = NewStatusMessage;
|
Bot.LastStatusMessage = NewStatusMessage;
|
||||||
Bot.Log2File(LogFormater.Status(Bot.LastStatusMessage, false), ConsoleLogLogLevel.Status);
|
Bot.Log2File(LogFormater.Status(Bot.LastStatusMessage, false), ConsoleLogLogLevel.Status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public CliExitOnLogout(JsonConfig Config, bool as_docker, bool use_self_keep_alive)
|
public CliExitOnLogout(JsonConfig Config, bool as_docker, bool use_self_keep_alive)
|
||||||
{
|
{
|
||||||
|
|
@ -50,23 +50,23 @@ namespace BetterSecondBot
|
||||||
SecondBotHttpServer my_http_server = new SecondBotHttpServer();
|
SecondBotHttpServer my_http_server = new SecondBotHttpServer();
|
||||||
my_http_server.StartHttpServer(Bot, Config);
|
my_http_server.StartHttpServer(Bot, Config);
|
||||||
*/
|
*/
|
||||||
new Thread(() =>
|
new Thread(() =>
|
||||||
{
|
{
|
||||||
new HttpAsService(Bot, Config, as_docker);
|
new HttpAsService(Bot, Config, as_docker);
|
||||||
}).Start();
|
}).Start();
|
||||||
}
|
}
|
||||||
if(use_self_keep_alive == true)
|
if(use_self_keep_alive == true)
|
||||||
{
|
{
|
||||||
keep_alive();
|
keep_alive();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LogFormater.Warn("Required settings missing");
|
LogFormater.Warn("Required settings missing");
|
||||||
}
|
}
|
||||||
if (use_self_keep_alive == true)
|
if (use_self_keep_alive == true)
|
||||||
{
|
{
|
||||||
exitBot = true;
|
exitBot = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ namespace BetterSecondBot.DiscordSupervisor
|
||||||
{
|
{
|
||||||
if (HasBasicBot() == false)
|
if (HasBasicBot() == false)
|
||||||
{
|
{
|
||||||
StatusMessageHandler(null, new BSB.bottypes.StatusMessageEvent(false, "None"));
|
StatusMessageHandler(null, new BetterSecondBot.bottypes.StatusMessageEvent(false, "None"));
|
||||||
}
|
}
|
||||||
string NewStatusMessage = GetStatus();
|
string NewStatusMessage = GetStatus();
|
||||||
if (NewStatusMessage != LastStatusMessage)
|
if (NewStatusMessage != LastStatusMessage)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using BSB.Static;
|
using BetterSecondBot.Static;
|
||||||
using EmbedIO;
|
using EmbedIO;
|
||||||
using EmbedIO.Routing;
|
using EmbedIO.Routing;
|
||||||
using EmbedIO.WebApi;
|
using EmbedIO.WebApi;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using BetterSecondBotShared.Json;
|
using BetterSecondBotShared.Json;
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using EmbedIO;
|
using EmbedIO;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using BSB.Static;
|
using BetterSecondBot.Static;
|
||||||
using EmbedIO;
|
using EmbedIO;
|
||||||
using EmbedIO.Routing;
|
using EmbedIO.Routing;
|
||||||
using EmbedIO.WebApi;
|
using EmbedIO.WebApi;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
using BetterSecondBotShared.Json;
|
using BetterSecondBotShared.Json;
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using System;
|
using System;
|
||||||
using EmbedIO;
|
using EmbedIO;
|
||||||
using EmbedIO.Actions;
|
using EmbedIO.Actions;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using BSB.Static;
|
using BetterSecondBot.Static;
|
||||||
using EmbedIO;
|
using EmbedIO;
|
||||||
using EmbedIO.Routing;
|
using EmbedIO.Routing;
|
||||||
using EmbedIO.WebApi;
|
using EmbedIO.WebApi;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using BSB.Static;
|
using BetterSecondBot.Static;
|
||||||
using EmbedIO;
|
using EmbedIO;
|
||||||
using EmbedIO.Routing;
|
using EmbedIO.Routing;
|
||||||
using EmbedIO.WebApi;
|
using EmbedIO.WebApi;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
using BSB.bottypes;
|
using BetterSecondBot.bottypes;
|
||||||
using BSB.Static;
|
using BetterSecondBot.Static;
|
||||||
using EmbedIO;
|
using EmbedIO;
|
||||||
using EmbedIO.Routing;
|
using EmbedIO.Routing;
|
||||||
using EmbedIO.WebApi;
|
using EmbedIO.WebApi;
|
||||||
|
|
|
||||||
|
|
@ -1,327 +1,327 @@
|
||||||
using BetterSecondBot.HttpService;
|
using BetterSecondBot.HttpService;
|
||||||
using BetterSecondBotShared.API;
|
using BetterSecondBotShared.API;
|
||||||
using BetterSecondBotShared.IO;
|
using BetterSecondBotShared.IO;
|
||||||
using BetterSecondBotShared.Json;
|
using BetterSecondBotShared.Json;
|
||||||
using BetterSecondBotShared.logs;
|
using BetterSecondBotShared.logs;
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
using EmbedIO;
|
using EmbedIO;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace BetterSecondBot.WikiMake
|
namespace BetterSecondBot.WikiMake
|
||||||
{
|
{
|
||||||
class DebugModeCreateWiki
|
class DebugModeCreateWiki
|
||||||
{
|
{
|
||||||
protected Dictionary<string, KeyValuePair<int, string>> api_reports = new Dictionary<string, KeyValuePair<int, string>>();
|
protected Dictionary<string, KeyValuePair<int, string>> api_reports = new Dictionary<string, KeyValuePair<int, string>>();
|
||||||
protected string html_header = "";
|
protected string html_header = "";
|
||||||
protected string html_footer = "";
|
protected string html_footer = "";
|
||||||
protected string buildVersion = "";
|
protected string buildVersion = "";
|
||||||
protected SimpleIO io;
|
protected SimpleIO io;
|
||||||
protected Dictionary<string, string> seen_command_names = new Dictionary<string, string>();
|
protected Dictionary<string, string> seen_command_names = new Dictionary<string, string>();
|
||||||
|
|
||||||
|
|
||||||
public string CreateRoot()
|
public string CreateRoot()
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.Append(html_header);
|
sb.Append(html_header);
|
||||||
sb.Append("<h3>Build: ");
|
sb.Append("<h3>Build: ");
|
||||||
sb.Append(buildVersion);
|
sb.Append(buildVersion);
|
||||||
sb.Append("</h3><br/>");
|
sb.Append("</h3><br/>");
|
||||||
sb.Append("<table class='table table-striped table-bordered'><thead><tr><th>Interface</th><th>Commands</th><th>Status</th></tr></thead><tbody>");
|
sb.Append("<table class='table table-striped table-bordered'><thead><tr><th>Interface</th><th>Commands</th><th>Status</th></tr></thead><tbody>");
|
||||||
foreach (KeyValuePair<string, KeyValuePair<int, string>> entry in api_reports)
|
foreach (KeyValuePair<string, KeyValuePair<int, string>> entry in api_reports)
|
||||||
{
|
{
|
||||||
sb.Append("<tr>");
|
sb.Append("<tr>");
|
||||||
sb.Append("<td><a href='[[SUBFOLDER]]");
|
sb.Append("<td><a href='[[SUBFOLDER]]");
|
||||||
sb.Append(entry.Key);
|
sb.Append(entry.Key);
|
||||||
sb.Append(".html'>");
|
sb.Append(".html'>");
|
||||||
sb.Append(entry.Key);
|
sb.Append(entry.Key);
|
||||||
sb.Append("</a></td>");
|
sb.Append("</a></td>");
|
||||||
sb.Append("<td>");
|
sb.Append("<td>");
|
||||||
sb.Append(entry.Value.Key.ToString());
|
sb.Append(entry.Value.Key.ToString());
|
||||||
sb.Append("</td><td>");
|
sb.Append("</td><td>");
|
||||||
sb.Append(entry.Value.Value);
|
sb.Append(entry.Value.Value);
|
||||||
sb.Append("</td></tr>");
|
sb.Append("</td></tr>");
|
||||||
}
|
}
|
||||||
sb.Append("</tbody></table>");
|
sb.Append("</tbody></table>");
|
||||||
sb.Replace("[[AREA]]", "Home");
|
sb.Replace("[[AREA]]", "Home");
|
||||||
sb.Replace("[[SUBFOLDER]]", "files/");
|
sb.Replace("[[SUBFOLDER]]", "files/");
|
||||||
sb.Replace("[[RETURNROOT]]", "");
|
sb.Replace("[[RETURNROOT]]", "");
|
||||||
sb = DebugModeCreateWiki.MenuActive(sb, "Home");
|
sb = DebugModeCreateWiki.MenuActive(sb, "Home");
|
||||||
sb.Append(html_footer);
|
sb.Append(html_footer);
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static StringBuilder MenuActive(StringBuilder index, string area)
|
protected static StringBuilder MenuActive(StringBuilder index, string area)
|
||||||
{
|
{
|
||||||
Dictionary<string, string> active_swaps = new Dictionary<string, string>
|
Dictionary<string, string> active_swaps = new Dictionary<string, string>
|
||||||
{
|
{
|
||||||
{ "CoreActive", "" },
|
{ "CoreActive", "" },
|
||||||
{ "CLIActive", "" },
|
{ "CLIActive", "" },
|
||||||
{ "JSONActive", "" },
|
{ "JSONActive", "" },
|
||||||
{ "RLVapiActive", "" },
|
{ "RLVapiActive", "" },
|
||||||
{ "HTTPActive", "" }
|
{ "HTTPActive", "" }
|
||||||
};
|
};
|
||||||
active_swaps["" + area + "Active"] = "Active";
|
active_swaps["" + area + "Active"] = "Active";
|
||||||
foreach (KeyValuePair<string, string> pair in active_swaps)
|
foreach (KeyValuePair<string, string> pair in active_swaps)
|
||||||
{
|
{
|
||||||
index = index.Replace("[[" + pair.Key + "]]", pair.Value);
|
index = index.Replace("[[" + pair.Key + "]]", pair.Value);
|
||||||
}
|
}
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void InterfaceCommands(string area, API_supported_interface shared_interface, bool track_commands = false)
|
protected void InterfaceCommands(string area, API_supported_interface shared_interface, bool track_commands = false)
|
||||||
{
|
{
|
||||||
string[] cmds = shared_interface.GetCommandsList();
|
string[] cmds = shared_interface.GetCommandsList();
|
||||||
string interface_name = shared_interface.GetType().Name;
|
string interface_name = shared_interface.GetType().Name;
|
||||||
foreach (string c in cmds)
|
foreach (string c in cmds)
|
||||||
{
|
{
|
||||||
if (track_commands == true)
|
if (track_commands == true)
|
||||||
{
|
{
|
||||||
if (seen_command_names.ContainsKey(c) == false)
|
if (seen_command_names.ContainsKey(c) == false)
|
||||||
{
|
{
|
||||||
seen_command_names.Add(c, interface_name);
|
seen_command_names.Add(c, interface_name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LogFormater.Debug("command " + c + " from " + interface_name + " overlaps an ready loaded command from " + seen_command_names[c] + "");
|
LogFormater.Debug("command " + c + " from " + interface_name + " overlaps an ready loaded command from " + seen_command_names[c] + "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
string workspace = shared_interface.GetCommandWorkspace(c);
|
string workspace = shared_interface.GetCommandWorkspace(c);
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.Append(html_header);
|
sb.Append(html_header);
|
||||||
sb.Append("<h3>Build: ");
|
sb.Append("<h3>Build: ");
|
||||||
sb.Append(buildVersion);
|
sb.Append(buildVersion);
|
||||||
sb.Append("</h3><br/>");
|
sb.Append("</h3><br/>");
|
||||||
sb.Append("<h4>Interface: <a href='[[AREA]].html'>[[AREA]]</a>");
|
sb.Append("<h4>Interface: <a href='[[AREA]].html'>[[AREA]]</a>");
|
||||||
if (workspace != "")
|
if (workspace != "")
|
||||||
{
|
{
|
||||||
sb.Append(" / <a href='[[AREA]][[WORKSPACE]].html'>[[WORKSPACE]]</a>");
|
sb.Append(" / <a href='[[AREA]][[WORKSPACE]].html'>[[WORKSPACE]]</a>");
|
||||||
}
|
}
|
||||||
sb.Append("</h4><hr/><h3>[[COMMAND]]</h3>");
|
sb.Append("</h4><hr/><h3>[[COMMAND]]</h3>");
|
||||||
int loop = 0;
|
int loop = 0;
|
||||||
int minargs = shared_interface.GetCommandArgs(c);
|
int minargs = shared_interface.GetCommandArgs(c);
|
||||||
string[] arg_types = shared_interface.GetCommandArgTypes(c);
|
string[] arg_types = shared_interface.GetCommandArgTypes(c);
|
||||||
string[] arg_hints = shared_interface.GetCommandArgHints(c);
|
string[] arg_hints = shared_interface.GetCommandArgHints(c);
|
||||||
if (area == "Core")
|
if (area == "Core")
|
||||||
{
|
{
|
||||||
StringBuilder ExampleCall = new StringBuilder();
|
StringBuilder ExampleCall = new StringBuilder();
|
||||||
ExampleCall.Append("Example: [[COMMAND]]");
|
ExampleCall.Append("Example: [[COMMAND]]");
|
||||||
ExampleCall.Append("|||");
|
ExampleCall.Append("|||");
|
||||||
string addon = "";
|
string addon = "";
|
||||||
while (loop < minargs)
|
while (loop < minargs)
|
||||||
{
|
{
|
||||||
ExampleCall.Append(addon);
|
ExampleCall.Append(addon);
|
||||||
addon = "~#~";
|
addon = "~#~";
|
||||||
string hint_value = "";
|
string hint_value = "";
|
||||||
if (arg_hints.Length > loop)
|
if (arg_hints.Length > loop)
|
||||||
{
|
{
|
||||||
if (arg_hints[loop] != null)
|
if (arg_hints[loop] != null)
|
||||||
{
|
{
|
||||||
string[] bits = arg_hints[loop].Split("<br/>", StringSplitOptions.RemoveEmptyEntries);
|
string[] bits = arg_hints[loop].Split("<br/>", StringSplitOptions.RemoveEmptyEntries);
|
||||||
if (bits.Length >= 1)
|
if (bits.Length >= 1)
|
||||||
{
|
{
|
||||||
hint_value = bits[0];
|
hint_value = bits[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (hint_value != "")
|
if (hint_value != "")
|
||||||
{
|
{
|
||||||
ExampleCall.Append(hint_value);
|
ExampleCall.Append(hint_value);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ExampleCall.Append("?");
|
ExampleCall.Append("?");
|
||||||
LogFormater.Debug("[WikiMake] " + area + " Command " + c + " missing some required hint values");
|
LogFormater.Debug("[WikiMake] " + area + " Command " + c + " missing some required hint values");
|
||||||
}
|
}
|
||||||
loop++;
|
loop++;
|
||||||
}
|
}
|
||||||
sb.Append(ExampleCall.ToString());
|
sb.Append(ExampleCall.ToString());
|
||||||
sb.Append("<hr style='border-top: 1px dashed #dcdcdc;'>");
|
sb.Append("<hr style='border-top: 1px dashed #dcdcdc;'>");
|
||||||
}
|
}
|
||||||
sb.Append("[[HELP]]");
|
sb.Append("[[HELP]]");
|
||||||
if (arg_types.Length > 0)
|
if (arg_types.Length > 0)
|
||||||
{
|
{
|
||||||
sb.Append("<hr/><h4>Args helper</h4>");
|
sb.Append("<hr/><h4>Args helper</h4>");
|
||||||
loop = 0;
|
loop = 0;
|
||||||
|
|
||||||
sb.Append("<table class='table table-striped table-bordered'><thead><tr><td>Num</td><th>Type</th><th>Required</th><th>Hint</th></tr></thead><tbody>");
|
sb.Append("<table class='table table-striped table-bordered'><thead><tr><td>Num</td><th>Type</th><th>Required</th><th>Hint</th></tr></thead><tbody>");
|
||||||
while (loop < arg_types.Length)
|
while (loop < arg_types.Length)
|
||||||
{
|
{
|
||||||
string hint = "";
|
string hint = "";
|
||||||
if (arg_hints.Length > loop)
|
if (arg_hints.Length > loop)
|
||||||
{
|
{
|
||||||
hint = arg_hints[loop];
|
hint = arg_hints[loop];
|
||||||
}
|
}
|
||||||
string Required = "X";
|
string Required = "X";
|
||||||
if ((loop + 1) > minargs)
|
if ((loop + 1) > minargs)
|
||||||
{
|
{
|
||||||
Required = "";
|
Required = "";
|
||||||
}
|
}
|
||||||
sb.Append("<tr><td>" + (loop + 1).ToString() + "</td><td>" + arg_types[loop] + "</td><td>" + Required + "</td><td>" + hint + "</td></tr>");
|
sb.Append("<tr><td>" + (loop + 1).ToString() + "</td><td>" + arg_types[loop] + "</td><td>" + Required + "</td><td>" + hint + "</td></tr>");
|
||||||
loop++;
|
loop++;
|
||||||
}
|
}
|
||||||
sb.Append("</tbody></table>");
|
sb.Append("</tbody></table>");
|
||||||
}
|
}
|
||||||
sb.Append(html_footer);
|
sb.Append(html_footer);
|
||||||
|
|
||||||
sb.Replace("[[COMMAND]]", c);
|
sb.Replace("[[COMMAND]]", c);
|
||||||
sb.Replace("[[HELP]]", shared_interface.GetCommandHelp(c));
|
sb.Replace("[[HELP]]", shared_interface.GetCommandHelp(c));
|
||||||
sb.Replace("[[MINARGS]]", minargs.ToString());
|
sb.Replace("[[MINARGS]]", minargs.ToString());
|
||||||
sb.Replace("[[WORKSPACE]]", workspace);
|
sb.Replace("[[WORKSPACE]]", workspace);
|
||||||
sb.Replace("[[AREA]]", area);
|
sb.Replace("[[AREA]]", area);
|
||||||
sb.Replace("[[SUBFOLDER]]", "");
|
sb.Replace("[[SUBFOLDER]]", "");
|
||||||
sb.Replace("[[RETURNROOT]]", "../");
|
sb.Replace("[[RETURNROOT]]", "../");
|
||||||
sb = DebugModeCreateWiki.MenuActive(sb, area);
|
sb = DebugModeCreateWiki.MenuActive(sb, area);
|
||||||
string target_file = "" + area + "" + workspace + "" + c.ToLowerInvariant() + ".html";
|
string target_file = "" + area + "" + workspace + "" + c.ToLowerInvariant() + ".html";
|
||||||
io.writefile(target_file, sb.ToString());
|
io.writefile(target_file, sb.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
protected void InterfaceWorkspaces(string area, API_supported_interface shared_interface)
|
protected void InterfaceWorkspaces(string area, API_supported_interface shared_interface)
|
||||||
{
|
{
|
||||||
string[] cmds = shared_interface.GetCommandsList();
|
string[] cmds = shared_interface.GetCommandsList();
|
||||||
foreach (string workspace in shared_interface.GetAllWorkspaces())
|
foreach (string workspace in shared_interface.GetAllWorkspaces())
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.Append(html_header);
|
sb.Append(html_header);
|
||||||
sb.Append("<h3>Interface: <a href='[[AREA]].html'>[[AREA]]</a>");
|
sb.Append("<h3>Interface: <a href='[[AREA]].html'>[[AREA]]</a>");
|
||||||
if (workspace != "")
|
if (workspace != "")
|
||||||
{
|
{
|
||||||
sb.Append(" / [[WORKSPACE]]");
|
sb.Append(" / [[WORKSPACE]]");
|
||||||
}
|
}
|
||||||
sb.Append("</h3><br/>");
|
sb.Append("</h3><br/>");
|
||||||
sb.Append("<h4>Build: ");
|
sb.Append("<h4>Build: ");
|
||||||
sb.Append(buildVersion);
|
sb.Append(buildVersion);
|
||||||
sb.Append("</h4><br/>");
|
sb.Append("</h4><br/>");
|
||||||
sb.Append("<table class='datatable table table-striped table-bordered'><thead><tr><th>Command</th><th>Min args</th></tr></thead><tbody>");
|
sb.Append("<table class='datatable table table-striped table-bordered'><thead><tr><th>Command</th><th>Min args</th></tr></thead><tbody>");
|
||||||
foreach (string c in cmds)
|
foreach (string c in cmds)
|
||||||
{
|
{
|
||||||
if (shared_interface.GetCommandWorkspace(c) == workspace)
|
if (shared_interface.GetCommandWorkspace(c) == workspace)
|
||||||
{
|
{
|
||||||
int args = shared_interface.GetCommandArgs(c);
|
int args = shared_interface.GetCommandArgs(c);
|
||||||
sb.Append("<tr><td><a href='[[AREA]]");
|
sb.Append("<tr><td><a href='[[AREA]]");
|
||||||
sb.Append(workspace);
|
sb.Append(workspace);
|
||||||
sb.Append(c.ToLowerInvariant());
|
sb.Append(c.ToLowerInvariant());
|
||||||
sb.Append(".html'>");
|
sb.Append(".html'>");
|
||||||
sb.Append(c);
|
sb.Append(c);
|
||||||
sb.Append("</a></td><td>");
|
sb.Append("</a></td><td>");
|
||||||
sb.Append(args.ToString());
|
sb.Append(args.ToString());
|
||||||
sb.Append("</td></tr>");
|
sb.Append("</td></tr>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sb.Append("</tbody></table>");
|
sb.Append("</tbody></table>");
|
||||||
sb.Replace("[[SUBFOLDER]]", "");
|
sb.Replace("[[SUBFOLDER]]", "");
|
||||||
sb.Replace("[[RETURNROOT]]", "../");
|
sb.Replace("[[RETURNROOT]]", "../");
|
||||||
sb.Replace("[[WORKSPACE]]", workspace);
|
sb.Replace("[[WORKSPACE]]", workspace);
|
||||||
sb.Replace("[[AREA]]", area);
|
sb.Replace("[[AREA]]", area);
|
||||||
sb.Append(html_footer);
|
sb.Append(html_footer);
|
||||||
sb = DebugModeCreateWiki.MenuActive(sb, area);
|
sb = DebugModeCreateWiki.MenuActive(sb, area);
|
||||||
string target_file = "" + area + "" + workspace + ".html";
|
string target_file = "" + area + "" + workspace + ".html";
|
||||||
io.writefile(target_file, sb.ToString());
|
io.writefile(target_file, sb.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void InterfaceIndex(string area, API_supported_interface shared_interface)
|
protected void InterfaceIndex(string area, API_supported_interface shared_interface)
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.Append(html_header);
|
sb.Append(html_header);
|
||||||
sb.Append("<h3>Interface:");
|
sb.Append("<h3>Interface:");
|
||||||
sb.Append(area);
|
sb.Append(area);
|
||||||
sb.Append("</h3><br/>");
|
sb.Append("</h3><br/>");
|
||||||
sb.Append("<h4>Build: ");
|
sb.Append("<h4>Build: ");
|
||||||
sb.Append(buildVersion);
|
sb.Append(buildVersion);
|
||||||
sb.Append("</h4><br/>");
|
sb.Append("</h4><br/>");
|
||||||
string[] cmds = shared_interface.GetCommandsList();
|
string[] cmds = shared_interface.GetCommandsList();
|
||||||
sb.Append("<table class='datatable table table-striped table-bordered'><thead><tr><th>Workspace</th><th>Commands</th></tr></thead><tbody>");
|
sb.Append("<table class='datatable table table-striped table-bordered'><thead><tr><th>Workspace</th><th>Commands</th></tr></thead><tbody>");
|
||||||
foreach (string workspace in shared_interface.GetAllWorkspaces())
|
foreach (string workspace in shared_interface.GetAllWorkspaces())
|
||||||
{
|
{
|
||||||
int commands_count = 0;
|
int commands_count = 0;
|
||||||
foreach (string c in cmds)
|
foreach (string c in cmds)
|
||||||
{
|
{
|
||||||
if (shared_interface.GetCommandWorkspace(c) == workspace)
|
if (shared_interface.GetCommandWorkspace(c) == workspace)
|
||||||
{
|
{
|
||||||
commands_count++;
|
commands_count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
string workspace_link = "<a href='[[AREA]]" + workspace + ".html'>" + workspace + "</a>";
|
string workspace_link = "<a href='[[AREA]]" + workspace + ".html'>" + workspace + "</a>";
|
||||||
sb.Append("<tr><td>");
|
sb.Append("<tr><td>");
|
||||||
sb.Append(workspace_link);
|
sb.Append(workspace_link);
|
||||||
sb.Append("</td><td>");
|
sb.Append("</td><td>");
|
||||||
sb.Append(commands_count.ToString());
|
sb.Append(commands_count.ToString());
|
||||||
sb.Append("</td></tr>");
|
sb.Append("</td></tr>");
|
||||||
}
|
}
|
||||||
sb.Append("</tbody></table>");
|
sb.Append("</tbody></table>");
|
||||||
sb.Replace("[[SUBFOLDER]]", "");
|
sb.Replace("[[SUBFOLDER]]", "");
|
||||||
sb.Replace("[[RETURNROOT]]", "../");
|
sb.Replace("[[RETURNROOT]]", "../");
|
||||||
sb.Replace("[[AREA]]", area);
|
sb.Replace("[[AREA]]", area);
|
||||||
sb.Append(html_footer);
|
sb.Append(html_footer);
|
||||||
sb = DebugModeCreateWiki.MenuActive(sb, area);
|
sb = DebugModeCreateWiki.MenuActive(sb, area);
|
||||||
io.writefile("" + area + ".html", sb.ToString());
|
io.writefile("" + area + ".html", sb.ToString());
|
||||||
}
|
}
|
||||||
protected void InterfaceWiki(string area, API_supported_interface shared_interface, bool track_commands = false)
|
protected void InterfaceWiki(string area, API_supported_interface shared_interface, bool track_commands = false)
|
||||||
{
|
{
|
||||||
LogFormater.Info("[WIKI] Starting area " + area + "");
|
LogFormater.Info("[WIKI] Starting area " + area + "");
|
||||||
// create index
|
// create index
|
||||||
InterfaceIndex(area, shared_interface);
|
InterfaceIndex(area, shared_interface);
|
||||||
|
|
||||||
// create workspaces
|
// create workspaces
|
||||||
InterfaceWorkspaces(area, shared_interface);
|
InterfaceWorkspaces(area, shared_interface);
|
||||||
|
|
||||||
// create commands
|
// create commands
|
||||||
InterfaceCommands(area, shared_interface, track_commands);
|
InterfaceCommands(area, shared_interface, track_commands);
|
||||||
LogFormater.Info("[WIKI] Done with area");
|
LogFormater.Info("[WIKI] Done with area");
|
||||||
}
|
}
|
||||||
|
|
||||||
public DebugModeCreateWiki(string Version, SimpleIO shareio)
|
public DebugModeCreateWiki(string Version, SimpleIO shareio)
|
||||||
{
|
{
|
||||||
io = shareio;
|
io = shareio;
|
||||||
buildVersion = Version;
|
buildVersion = Version;
|
||||||
html_header = helpers.ReadResourceFile(Assembly.GetExecutingAssembly(), "wiki_header.txt");
|
html_header = helpers.ReadResourceFile(Assembly.GetExecutingAssembly(), "wiki_header.txt");
|
||||||
html_footer = helpers.ReadResourceFile(Assembly.GetExecutingAssembly(), "wiki_footer.txt");
|
html_footer = helpers.ReadResourceFile(Assembly.GetExecutingAssembly(), "wiki_footer.txt");
|
||||||
io.ChangeRoot("wiki");
|
io.ChangeRoot("wiki");
|
||||||
io.ChangeRoot("wiki/files");
|
io.ChangeRoot("wiki/files");
|
||||||
|
|
||||||
// JSONcfg
|
// JSONcfg
|
||||||
MakeJsonConfig defaultJson = new MakeJsonConfig();
|
MakeJsonConfig defaultJson = new MakeJsonConfig();
|
||||||
api_reports.Add("JSON", new KeyValuePair<int, string>(defaultJson.ApiCommandsCount, "Ready"));
|
api_reports.Add("JSON", new KeyValuePair<int, string>(defaultJson.ApiCommandsCount, "Ready"));
|
||||||
InterfaceWiki("JSON", defaultJson);
|
InterfaceWiki("JSON", defaultJson);
|
||||||
|
|
||||||
// CMD
|
// CMD
|
||||||
BSB.Commands.CoreCommandsInterface cmd = new BSB.Commands.CoreCommandsInterface(null);
|
BetterSecondBot.Commands.CoreCommandsInterface cmd = new BetterSecondBot.Commands.CoreCommandsInterface(null);
|
||||||
api_reports.Add("Core", new KeyValuePair<int, string>(cmd.ApiCommandsCount, "Good"));
|
api_reports.Add("Core", new KeyValuePair<int, string>(cmd.ApiCommandsCount, "Good"));
|
||||||
InterfaceWiki("Core", cmd, true);
|
InterfaceWiki("Core", cmd, true);
|
||||||
|
|
||||||
// RLVapi
|
// RLVapi
|
||||||
BSB.RLV.RLVcontrol RLVapi = new BSB.RLV.RLVcontrol(null);
|
BetterSecondBot.RLV.RLVcontrol RLVapi = new BetterSecondBot.RLV.RLVcontrol(null);
|
||||||
api_reports.Add("RLVapi", new KeyValuePair<int, string>(RLVapi.ApiCommandsCount, "Limited"));
|
api_reports.Add("RLVapi", new KeyValuePair<int, string>(RLVapi.ApiCommandsCount, "Limited"));
|
||||||
InterfaceWiki("RLVapi", RLVapi, true);
|
InterfaceWiki("RLVapi", RLVapi, true);
|
||||||
|
|
||||||
// HTTP
|
// HTTP
|
||||||
HTTPWiki();
|
HTTPWiki();
|
||||||
|
|
||||||
io.ChangeRoot("wiki");
|
io.ChangeRoot("wiki");
|
||||||
io.writefile("index.html", CreateRoot());
|
io.writefile("index.html", CreateRoot());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void HTTPWiki()
|
protected void HTTPWiki()
|
||||||
{
|
{
|
||||||
LogFormater.Info("[WIKI] Starting area HTTP endpoint");
|
LogFormater.Info("[WIKI] Starting area HTTP endpoint");
|
||||||
HTTPendpoint HTTP = new HTTPendpoint();
|
HTTPendpoint HTTP = new HTTPendpoint();
|
||||||
|
|
||||||
HTTPmenu("HTTP", HTTP);
|
HTTPmenu("HTTP", HTTP);
|
||||||
|
|
||||||
// create workspaces
|
// create workspaces
|
||||||
HTTPWorkspaces("HTTP", HTTP);
|
HTTPWorkspaces("HTTP", HTTP);
|
||||||
|
|
||||||
// create commands
|
// create commands
|
||||||
HTTPCommands("HTTP", HTTP);
|
HTTPCommands("HTTP", HTTP);
|
||||||
|
|
||||||
HTTP = null;
|
HTTP = null;
|
||||||
LogFormater.Info("[WIKI] Done with area");
|
LogFormater.Info("[WIKI] Done with area");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected string getURLargs(Dictionary<string, KeyValuePair<string, string>> values)
|
protected string getURLargs(Dictionary<string, KeyValuePair<string, string>> values)
|
||||||
{
|
{
|
||||||
List<string> urlargs = new List<string>();
|
List<string> urlargs = new List<string>();
|
||||||
|
|
@ -333,13 +333,13 @@ namespace BetterSecondBot.WikiMake
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return String.Join('/', urlargs);
|
return String.Join('/', urlargs);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void HTTPCommands(string area, HTTPendpoint HTTP)
|
protected void HTTPCommands(string area, HTTPendpoint HTTP)
|
||||||
{
|
{
|
||||||
foreach (string workspace in HTTP.getEndPoints())
|
foreach (string workspace in HTTP.getEndPoints())
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach (string c in HTTP.getEndpointCommands(workspace))
|
foreach (string c in HTTP.getEndpointCommands(workspace))
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
@ -742,4 +742,4 @@ namespace BetterSecondBot.WikiMake
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Animation
|
namespace BetterSecondBot.Commands.Animation
|
||||||
{
|
{
|
||||||
public class PlayGesture : CoreCommand_1arg
|
public class PlayGesture : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Animation
|
namespace BetterSecondBot.Commands.Animation
|
||||||
{
|
{
|
||||||
public class AddToAllowAnimations : CoreCommand_1arg
|
public class AddToAllowAnimations : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Animation
|
namespace BetterSecondBot.Commands.Animation
|
||||||
{
|
{
|
||||||
public class ResetAnimations : CoreCommand
|
public class ResetAnimations : CoreCommand
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace BSB.Commands.Avatars
|
namespace BetterSecondBot.Commands.Avatars
|
||||||
{
|
{
|
||||||
class RoleCreate : CoreCommand_SmartReply_1arg
|
class RoleCreate : CoreCommand_SmartReply_1arg
|
||||||
{
|
{
|
||||||
|
|
@ -15,17 +15,17 @@ namespace BSB.Commands.Avatars
|
||||||
if (base.CallFunction(args) == true)
|
if (base.CallFunction(args) == true)
|
||||||
{
|
{
|
||||||
Dictionary<string, string> collection = new Dictionary<string, string>();
|
Dictionary<string, string> collection = new Dictionary<string, string>();
|
||||||
foreach(Avatar av in bot.GetClient.Network.CurrentSim.ObjectsAvatars.Copy().Values)
|
foreach(Avatar av in bot.GetClient.Network.CurrentSim.ObjectsAvatars.Copy().Values)
|
||||||
{
|
{
|
||||||
Vector3 pos = new Vector3(1, 1, 1);
|
Vector3 pos = new Vector3(1, 1, 1);
|
||||||
if(bot.GetClient.Network.CurrentSim.AvatarPositions.ContainsKey(av.ID) == true)
|
if(bot.GetClient.Network.CurrentSim.AvatarPositions.ContainsKey(av.ID) == true)
|
||||||
{
|
{
|
||||||
pos = bot.GetClient.Network.CurrentSim.AvatarPositions[av.ID];
|
pos = bot.GetClient.Network.CurrentSim.AvatarPositions[av.ID];
|
||||||
}
|
}
|
||||||
Dictionary<string, string> entrys = new Dictionary<string, string>();
|
Dictionary<string, string> entrys = new Dictionary<string, string>();
|
||||||
entrys.Add("Username",av.Name);
|
entrys.Add("Username",av.Name);
|
||||||
entrys.Add("Pos", pos.X.ToString() + "," + pos.Y.ToString() + "," + pos.Z.ToString());
|
entrys.Add("Pos", pos.X.ToString() + "," + pos.Y.ToString() + "," + pos.Z.ToString());
|
||||||
collection.Add(av.ID.ToString(), JsonConvert.SerializeObject(entrys));
|
collection.Add(av.ID.ToString(), JsonConvert.SerializeObject(entrys));
|
||||||
}
|
}
|
||||||
return bot.GetCommandsInterface.SmartCommandReply(true, args[0], "ok", CommandName, collection);
|
return bot.GetCommandsInterface.SmartCommandReply(true, args[0], "ok", CommandName, collection);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
|
|
||||||
namespace BSB.Commands.Avatars
|
namespace BetterSecondBot.Commands.Avatars
|
||||||
{
|
{
|
||||||
public class PayAvatar : CoreCommand_2arg
|
public class PayAvatar : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Chat
|
namespace BetterSecondBot.Commands.Chat
|
||||||
{
|
{
|
||||||
class LocalChatHistory : CoreCommand_SmartReply_1arg
|
class LocalChatHistory : CoreCommand_SmartReply_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
|
|
||||||
namespace BSB.Commands.Chat
|
namespace BetterSecondBot.Commands.Chat
|
||||||
{
|
{
|
||||||
class IM : CoreCommand_2arg
|
class IM : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Chat
|
namespace BetterSecondBot.Commands.Chat
|
||||||
{
|
{
|
||||||
class Say : CoreCommand_1arg
|
class Say : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Dialogs
|
namespace BetterSecondBot.Commands.Dialogs
|
||||||
{
|
{
|
||||||
class DialogRelay : CoreCommand_1arg
|
class DialogRelay : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Dialogs
|
namespace BetterSecondBot.Commands.Dialogs
|
||||||
{
|
{
|
||||||
class DialogResponce : CoreCommand_2arg
|
class DialogResponce : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Dialogs
|
namespace BetterSecondBot.Commands.Dialogs
|
||||||
{
|
{
|
||||||
class DialogTrack : CoreCommand_1arg
|
class DialogTrack : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_AddRole : CoreCommand_4arg
|
class Discord_AddRole : CoreCommand_4arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_BanMember : CoreCommand_3arg
|
class Discord_BanMember : CoreCommand_3arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_BulkClear_Messages : CoreCommand_3arg
|
class Discord_BulkClear_Messages : CoreCommand_3arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_Dm_Member : CoreCommand_4arg
|
class Discord_Dm_Member : CoreCommand_4arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_MembersList : CoreCommand_SmartReply_2arg
|
class Discord_MembersList : CoreCommand_SmartReply_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_MessageChannel : CoreCommand_4arg
|
class Discord_MessageChannel : CoreCommand_4arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_MuteMember : CoreCommand_3arg
|
class Discord_MuteMember : CoreCommand_3arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@ using System.Text;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Discord.WebSocket;
|
using Discord.WebSocket;
|
||||||
using Discord;
|
using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_RoleCreate : CoreCommand_SmartReply_3arg
|
class Discord_RoleCreate : CoreCommand_SmartReply_3arg
|
||||||
{
|
{
|
||||||
|
|
@ -20,28 +20,28 @@ namespace BSB.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
if (base.CallFunction(args) == true)
|
if (base.CallFunction(args) == true)
|
||||||
{
|
{
|
||||||
if(bot.discordReady() == false)
|
if(bot.discordReady() == false)
|
||||||
{
|
{
|
||||||
return bot.GetCommandsInterface.SmartCommandReply(false, args[0], bot.getDiscordWhyFailed(), CommandName);
|
return bot.GetCommandsInterface.SmartCommandReply(false, args[0], bot.getDiscordWhyFailed(), CommandName);
|
||||||
}
|
}
|
||||||
KeyValuePair<string, ulong> reply = CreateRole(args).Result;
|
KeyValuePair<string, ulong> reply = CreateRole(args).Result;
|
||||||
Dictionary<string, string> collection = new Dictionary<string, string>();
|
Dictionary<string, string> collection = new Dictionary<string, string>();
|
||||||
collection.Add("roleid", reply.Value.ToString());
|
collection.Add("roleid", reply.Value.ToString());
|
||||||
return bot.GetCommandsInterface.SmartCommandReply(true, args[0], "ok", CommandName, collection);
|
return bot.GetCommandsInterface.SmartCommandReply(true, args[0], "ok", CommandName, collection);
|
||||||
}
|
}
|
||||||
return bot.GetCommandsInterface.SmartCommandReply(false, args[0], "incorrect args", CommandName);
|
return bot.GetCommandsInterface.SmartCommandReply(false, args[0], "incorrect args", CommandName);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected async Task<KeyValuePair<string,ulong>> CreateRole(string[] args)
|
protected async Task<KeyValuePair<string,ulong>> CreateRole(string[] args)
|
||||||
{
|
{
|
||||||
DiscordSocketClient Discord = bot.getDiscordClient();
|
DiscordSocketClient Discord = bot.getDiscordClient();
|
||||||
if (ulong.TryParse(args[1], out ulong serverid) == true)
|
if (ulong.TryParse(args[1], out ulong serverid) == true)
|
||||||
{
|
{
|
||||||
SocketGuild server = Discord.GetGuild(serverid);
|
SocketGuild server = Discord.GetGuild(serverid);
|
||||||
RestRole role = await server.CreateRoleAsync(args[2], new GuildPermissions(), Color.DarkRed, false, null).ConfigureAwait(true);
|
RestRole role = await server.CreateRoleAsync(args[2], new GuildPermissions(), Color.DarkRed, false, null).ConfigureAwait(true);
|
||||||
return new KeyValuePair<string, ulong>("ok", role.Id);
|
return new KeyValuePair<string, ulong>("ok", role.Id);
|
||||||
}
|
}
|
||||||
return new KeyValuePair<string, ulong>("Unable to process server id", 0);
|
return new KeyValuePair<string, ulong>("Unable to process server id", 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_RoleList: CoreCommand_SmartReply_2arg
|
class Discord_RoleList: CoreCommand_SmartReply_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_RoleRemove: CoreCommand_SmartReply_3arg
|
class Discord_RoleRemove: CoreCommand_SmartReply_3arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_Role_GetSettings : CoreCommand_SmartReply_3arg
|
class Discord_Role_GetSettings : CoreCommand_SmartReply_3arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_Role_UpdatePerms : CoreCommand_4arg
|
class Discord_Role_UpdatePerms : CoreCommand_4arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ using Discord;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace BSB.Commands.DiscordAPI
|
namespace BetterSecondBot.Commands.DiscordAPI
|
||||||
{
|
{
|
||||||
class Discord_TextChannels_List : CoreCommand_SmartReply_2arg
|
class Discord_TextChannels_List : CoreCommand_SmartReply_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Estate
|
namespace BetterSecondBot.Commands.Estate
|
||||||
{
|
{
|
||||||
public class EstateParcelReclaim : CoreCommand
|
public class EstateParcelReclaim : CoreCommand
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Estate
|
namespace BetterSecondBot.Commands.Estate
|
||||||
{
|
{
|
||||||
public class GetSimGlobalPos : CoreCommand_SmartReply_2arg
|
public class GetSimGlobalPos : CoreCommand_SmartReply_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Estate
|
namespace BetterSecondBot.Commands.Estate
|
||||||
{
|
{
|
||||||
public class GetSimTexture : CoreCommand_SmartReply_2arg
|
public class GetSimTexture : CoreCommand_SmartReply_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Estate
|
namespace BetterSecondBot.Commands.Estate
|
||||||
{
|
{
|
||||||
public class SimMessage : CoreCommand_1arg
|
public class SimMessage : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Estate
|
namespace BetterSecondBot.Commands.Estate
|
||||||
{
|
{
|
||||||
public class SimRestart : CoreCommand_1arg
|
public class SimRestart : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
namespace BSB.Commands.Friends
|
namespace BetterSecondBot.Commands.Friends
|
||||||
{
|
{
|
||||||
public class FriendFullPerms : CoreCommand_2arg
|
public class FriendFullPerms : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
namespace BSB.Commands.Friends
|
namespace BetterSecondBot.Commands.Friends
|
||||||
{
|
{
|
||||||
public class FriendRequest : CoreCommand_1arg
|
public class FriendRequest : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
namespace BSB.Commands.Friends
|
namespace BetterSecondBot.Commands.Friends
|
||||||
{
|
{
|
||||||
public class Friendslist : CoreCommand_SmartReply_1arg
|
public class Friendslist : CoreCommand_SmartReply_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
class GroupActiveGroup : CoreCommand_1arg
|
class GroupActiveGroup : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
class GroupActiveTitle : CoreCommand_2arg
|
class GroupActiveTitle : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using BetterSecondBotShared.logs;
|
using BetterSecondBotShared.logs;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
class GroupAddRole : CoreCommand_3arg
|
class GroupAddRole : CoreCommand_3arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using BetterSecondBotShared.logs;
|
using BetterSecondBotShared.logs;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
public class GroupEject : CoreCommand_2arg
|
public class GroupEject : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using BetterSecondBotShared.logs;
|
using BetterSecondBotShared.logs;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
public class GroupInvite : CoreCommand_2arg
|
public class GroupInvite : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
class GroupInviteNoLimiter: CoreCommand_2arg
|
class GroupInviteNoLimiter: CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
class Groupnotice : CoreCommand_2arg
|
class Groupnotice : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ using System.Text;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
public class IsGroupMember : CoreCommand_3arg
|
public class IsGroupMember : CoreCommand_3arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
public class GetGroupList : CoreGroupCommand_SmartReply_auto
|
public class GetGroupList : CoreGroupCommand_SmartReply_auto
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
public class GetGroupMembers : CoreCommand_2arg
|
public class GetGroupMembers : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
public class GetGroupRoles : CoreGroupCommand_SmartReply_Group
|
public class GetGroupRoles : CoreGroupCommand_SmartReply_Group
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
public abstract class CoreGroupCommand_SmartReply_auto : CoreCommand_SmartReply_1arg
|
public abstract class CoreGroupCommand_SmartReply_auto : CoreCommand_SmartReply_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
class Groupchat : CoreCommand_2arg
|
class Groupchat : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
class GroupchatAnyUnread : CoreGroupCommand_SmartReply_auto
|
class GroupchatAnyUnread : CoreGroupCommand_SmartReply_auto
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
class GroupchatClearAll : CoreCommand
|
class GroupchatClearAll : CoreCommand
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
class GroupchatGroupHasUnread : CoreGroupCommand_SmartReply_Group_auto
|
class GroupchatGroupHasUnread : CoreGroupCommand_SmartReply_Group_auto
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Linq;
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
using Microsoft.VisualBasic.CompilerServices;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
class GroupchatHistory : CoreGroupCommand_SmartReply_Group_auto
|
class GroupchatHistory : CoreGroupCommand_SmartReply_Group_auto
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace BSB.Commands.Group
|
namespace BetterSecondBot.Commands.Group
|
||||||
{
|
{
|
||||||
public class GroupchatListAllUnreadGroups : CoreGroupCommand_SmartReply_auto
|
public class GroupchatListAllUnreadGroups : CoreGroupCommand_SmartReply_auto
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Helpers
|
namespace BetterSecondBot.Commands.Helpers
|
||||||
{
|
{
|
||||||
public class Delay : CoreCommand_1arg
|
public class Delay : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Home
|
namespace BetterSecondBot.Commands.Home
|
||||||
{
|
{
|
||||||
public class GoHome : CoreCommand
|
public class GoHome : CoreCommand
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Home
|
namespace BetterSecondBot.Commands.Home
|
||||||
{
|
{
|
||||||
public class ResetAtHome : CoreCommand
|
public class ResetAtHome : CoreCommand
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Info
|
namespace BetterSecondBot.Commands.Info
|
||||||
{
|
{
|
||||||
public class Balance : CoreCommand_SmartReply_1arg
|
public class Balance : CoreCommand_SmartReply_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Info
|
namespace BetterSecondBot.Commands.Info
|
||||||
{
|
{
|
||||||
public class GetPosition : CoreCommand_SmartReply_1arg
|
public class GetPosition : CoreCommand_SmartReply_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Info
|
namespace BetterSecondBot.Commands.Info
|
||||||
{
|
{
|
||||||
public class ParcelName : ParcelCommand_CheckParcel_1arg_smart
|
public class ParcelName : ParcelCommand_CheckParcel_1arg_smart
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Info
|
namespace BetterSecondBot.Commands.Info
|
||||||
{
|
{
|
||||||
public class SimName : CoreCommand_SmartReply_1arg
|
public class SimName : CoreCommand_SmartReply_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
|
|
||||||
namespace BSB.Commands.Info
|
namespace BetterSecondBot.Commands.Info
|
||||||
{
|
{
|
||||||
public class UnixTimeNow : CoreCommand_SmartReply_1arg
|
public class UnixTimeNow : CoreCommand_SmartReply_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Inventory
|
namespace BetterSecondBot.Commands.Inventory
|
||||||
{
|
{
|
||||||
public class DeleteInventoryItem : CoreCommand_1arg
|
public class DeleteInventoryItem : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Inventory
|
namespace BetterSecondBot.Commands.Inventory
|
||||||
{
|
{
|
||||||
public class InventoryPurgeNotecards : CoreCommand
|
public class InventoryPurgeNotecards : CoreCommand
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using BSB.Static;
|
using BetterSecondBot.Static;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Inventory
|
namespace BetterSecondBot.Commands.Inventory
|
||||||
{
|
{
|
||||||
public class RenameInventory : CoreCommand_3arg
|
public class RenameInventory : CoreCommand_3arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Inventory
|
namespace BetterSecondBot.Commands.Inventory
|
||||||
{
|
{
|
||||||
public class Attach : CoreCommand_2arg
|
public class Attach : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using BSB.Static;
|
using BetterSecondBot.Static;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Inventory
|
namespace BetterSecondBot.Commands.Inventory
|
||||||
{
|
{
|
||||||
public class getRealUUID : CoreCommand_2arg
|
public class getRealUUID : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
using System;
|
using System;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using BSB.Static;
|
using BetterSecondBot.Static;
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace BSB.Commands.Inventory
|
namespace BetterSecondBot.Commands.Inventory
|
||||||
{
|
{
|
||||||
|
|
||||||
public class InventoryContents : CoreCommand_2arg
|
public class InventoryContents : CoreCommand_2arg
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using BSB.Static;
|
using BetterSecondBot.Static;
|
||||||
|
|
||||||
namespace BSB.Commands.Inventory
|
namespace BetterSecondBot.Commands.Inventory
|
||||||
{
|
{
|
||||||
public class InventoryFolders : CoreCommand_1arg
|
public class InventoryFolders : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Inventory
|
namespace BetterSecondBot.Commands.Inventory
|
||||||
{
|
{
|
||||||
public class Outfit : CoreCommand_1arg
|
public class Outfit : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using BSB.Static;
|
using BetterSecondBot.Static;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Inventory
|
namespace BetterSecondBot.Commands.Inventory
|
||||||
{
|
{
|
||||||
public class SendFolder : CoreCommand_2arg
|
public class SendFolder : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Inventory
|
namespace BetterSecondBot.Commands.Inventory
|
||||||
{
|
{
|
||||||
public class SendItem : CoreCommand_2arg
|
public class SendItem : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
using System;
|
using BetterSecondBotShared.Static;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using BetterSecondBotShared.Static;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace BSB.Commands.Movement
|
namespace BetterSecondBot.Commands.Movement
|
||||||
{
|
{
|
||||||
public class AutoPilot : CoreCommand_1arg
|
public class AutoPilot : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Movement
|
namespace BetterSecondBot.Commands.Movement
|
||||||
{
|
{
|
||||||
public class AutoPilotStop : CoreCommand
|
public class AutoPilotStop : CoreCommand
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace BSB.Commands.Movement
|
namespace BetterSecondBot.Commands.Movement
|
||||||
{
|
{
|
||||||
public class BotFly : CoreCommand_1arg
|
public class BotFly : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Movement
|
namespace BetterSecondBot.Commands.Movement
|
||||||
{
|
{
|
||||||
public class RequestTeleport : CoreCommand_1arg
|
public class RequestTeleport : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
namespace BSB.Commands.Movement
|
namespace BetterSecondBot.Commands.Movement
|
||||||
{
|
{
|
||||||
public class RotateToFace : CoreCommand_1arg
|
public class RotateToFace : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
namespace BSB.Commands.Movement
|
namespace BetterSecondBot.Commands.Movement
|
||||||
{
|
{
|
||||||
public class RotateToFaceVector : CoreCommand_1arg
|
public class RotateToFaceVector : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Movement
|
namespace BetterSecondBot.Commands.Movement
|
||||||
{
|
{
|
||||||
public class SendTeleportLure : CoreCommand_1arg
|
public class SendTeleportLure : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
namespace BSB.Commands.Movement
|
namespace BetterSecondBot.Commands.Movement
|
||||||
{
|
{
|
||||||
public class RotateTo : CoreCommand_1arg
|
public class RotateTo : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Movement
|
namespace BetterSecondBot.Commands.Movement
|
||||||
{
|
{
|
||||||
public class Teleport : CoreCommand_1arg
|
public class Teleport : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Notecard
|
namespace BetterSecondBot.Commands.Notecard
|
||||||
{
|
{
|
||||||
class NotecardAdd : CoreCommand_2arg
|
class NotecardAdd : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.Notecard
|
namespace BetterSecondBot.Commands.Notecard
|
||||||
{
|
{
|
||||||
class NotecardClear : CoreCommand_1arg
|
class NotecardClear : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.Notecard
|
namespace BetterSecondBot.Commands.Notecard
|
||||||
{
|
{
|
||||||
class NotecardSend : CoreCommand_2arg
|
class NotecardSend : CoreCommand_2arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.CMD_Parcel
|
namespace BetterSecondBot.Commands.CMD_Parcel
|
||||||
{
|
{
|
||||||
public class AbandonLand : ParcelCommand_RequirePerms
|
public class AbandonLand : ParcelCommand_RequirePerms
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using static OpenMetaverse.ParcelManager;
|
using static OpenMetaverse.ParcelManager;
|
||||||
|
|
||||||
namespace BSB.Commands.Parcel
|
namespace BetterSecondBot.Commands.Parcel
|
||||||
{
|
{
|
||||||
class GetParcelBanlist : ParcelCommand_CheckParcel_1arg_smart
|
class GetParcelBanlist : ParcelCommand_CheckParcel_1arg_smart
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BSB.Commands.CMD_Parcel
|
namespace BetterSecondBot.Commands.CMD_Parcel
|
||||||
{
|
{
|
||||||
public class GetParcelDesc : ParcelCommand_CheckParcel_1arg_smart
|
public class GetParcelDesc : ParcelCommand_CheckParcel_1arg_smart
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ using BetterSecondBotShared.logs;
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.CMD_Parcel
|
namespace BetterSecondBot.Commands.CMD_Parcel
|
||||||
{
|
{
|
||||||
public class GetParcelFlags : CoreCommand_1arg
|
public class GetParcelFlags : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using static OpenMetaverse.ParcelManager;
|
using static OpenMetaverse.ParcelManager;
|
||||||
|
|
||||||
namespace BSB.Commands.CMD_Parcel
|
namespace BetterSecondBot.Commands.CMD_Parcel
|
||||||
{
|
{
|
||||||
public class ParcelBan : CoreCommand_1arg
|
public class ParcelBan : CoreCommand_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.CMD_Parcel
|
namespace BetterSecondBot.Commands.CMD_Parcel
|
||||||
{
|
{
|
||||||
class ParcelBuy : ParcelCommand_CheckParcel
|
class ParcelBuy : ParcelCommand_CheckParcel
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace BSB.Commands.CMD_Parcel
|
namespace BetterSecondBot.Commands.CMD_Parcel
|
||||||
{
|
{
|
||||||
public class ParcelCleanAndSell : ParcelCommand_RequirePerms_1arg
|
public class ParcelCleanAndSell : ParcelCommand_RequirePerms_1arg
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue