namepsace updates

This commit is contained in:
Madpeterz 2021-02-14 17:47:49 +00:00
parent 3b1904293c
commit 7752d7cd9c
210 changed files with 1159 additions and 1130 deletions

View file

@ -1,7 +1,7 @@
using BetterSecondBot;
using BetterSecondBotShared.Json;
using BetterSecondBotShared.Static;
using BSB.bottypes;
using BetterSecondBot.bottypes;
using OpenMetaverse;
using System.Collections.Generic;

View file

@ -3,7 +3,7 @@ using BetterSecondBotShared.IO;
using BetterSecondBotShared.Json;
using BetterSecondBotShared.logs;
using BetterSecondBotShared.Static;
using BSB.bottypes;
using BetterSecondBot.bottypes;
using Newtonsoft.Json;
using OpenMetaverse;
using System;

View file

@ -2,7 +2,7 @@
using BetterSecondBotShared.Json;
using BetterSecondBotShared.logs;
using BetterSecondBotShared.Static;
using BSB.bottypes;
using BetterSecondBot.bottypes;
using System.Threading;
using static BetterSecondBot.Program;
@ -14,22 +14,22 @@ namespace BetterSecondBot
protected bool exitBot = false;
public SecondBot Bot;
protected void keep_alive()
{
while (Bot.KillMe == false)
{
string NewStatusMessage = Bot.GetStatus();
if (NewStatusMessage != Bot.LastStatusMessage)
{
NewStatusMessage = NewStatusMessage.Trim();
if (NewStatusMessage.Replace(" ", "") != "")
{
Bot.LastStatusMessage = NewStatusMessage;
Bot.Log2File(LogFormater.Status(Bot.LastStatusMessage, false), ConsoleLogLogLevel.Status);
}
}
Thread.Sleep(1000);
}
protected void keep_alive()
{
while (Bot.KillMe == false)
{
string NewStatusMessage = Bot.GetStatus();
if (NewStatusMessage != Bot.LastStatusMessage)
{
NewStatusMessage = NewStatusMessage.Trim();
if (NewStatusMessage.Replace(" ", "") != "")
{
Bot.LastStatusMessage = NewStatusMessage;
Bot.Log2File(LogFormater.Status(Bot.LastStatusMessage, false), ConsoleLogLogLevel.Status);
}
}
Thread.Sleep(1000);
}
}
public CliExitOnLogout(JsonConfig Config, bool as_docker, bool use_self_keep_alive)
{
@ -50,23 +50,23 @@ namespace BetterSecondBot
SecondBotHttpServer my_http_server = new SecondBotHttpServer();
my_http_server.StartHttpServer(Bot, Config);
*/
new Thread(() =>
{
new HttpAsService(Bot, Config, as_docker);
new Thread(() =>
{
new HttpAsService(Bot, Config, as_docker);
}).Start();
}
if(use_self_keep_alive == true)
{
keep_alive();
if(use_self_keep_alive == true)
{
keep_alive();
}
}
else
{
LogFormater.Warn("Required settings missing");
}
if (use_self_keep_alive == true)
{
exitBot = true;
}
if (use_self_keep_alive == true)
{
exitBot = true;
}
}
}

View file

@ -20,7 +20,7 @@ namespace BetterSecondBot.DiscordSupervisor
{
if (HasBasicBot() == false)
{
StatusMessageHandler(null, new BSB.bottypes.StatusMessageEvent(false, "None"));
StatusMessageHandler(null, new BetterSecondBot.bottypes.StatusMessageEvent(false, "None"));
}
string NewStatusMessage = GetStatus();
if (NewStatusMessage != LastStatusMessage)

View file

@ -1,4 +1,4 @@
using BSB.bottypes;
using BetterSecondBot.bottypes;
using System;
using System.Collections.Generic;
using System.Text;

View file

@ -1,5 +1,5 @@
using BSB.bottypes;
using BSB.Static;
using BetterSecondBot.bottypes;
using BetterSecondBot.Static;
using EmbedIO;
using EmbedIO.Routing;
using EmbedIO.WebApi;

View file

@ -1,6 +1,6 @@
using BetterSecondBotShared.Json;
using BetterSecondBotShared.Static;
using BSB.bottypes;
using BetterSecondBot.bottypes;
using OpenMetaverse;
using System.Threading.Tasks;
using EmbedIO;

View file

@ -1,5 +1,5 @@
using BSB.bottypes;
using BSB.Static;
using BetterSecondBot.bottypes;
using BetterSecondBot.Static;
using EmbedIO;
using EmbedIO.Routing;
using EmbedIO.WebApi;

View file

@ -1,5 +1,5 @@
using BetterSecondBotShared.Json;
using BSB.bottypes;
using BetterSecondBot.bottypes;
using System;
using EmbedIO;
using EmbedIO.Actions;

View file

@ -1,5 +1,5 @@
using BSB.bottypes;
using BSB.Static;
using BetterSecondBot.bottypes;
using BetterSecondBot.Static;
using EmbedIO;
using EmbedIO.Routing;
using EmbedIO.WebApi;

View file

@ -1,5 +1,5 @@
using BSB.bottypes;
using BSB.Static;
using BetterSecondBot.bottypes;
using BetterSecondBot.Static;
using EmbedIO;
using EmbedIO.Routing;
using EmbedIO.WebApi;

View file

@ -1,5 +1,5 @@
using BSB.bottypes;
using BSB.Static;
using BetterSecondBot.bottypes;
using BetterSecondBot.Static;
using EmbedIO;
using EmbedIO.Routing;
using EmbedIO.WebApi;

View file

@ -1,327 +1,327 @@
using BetterSecondBot.HttpService;
using BetterSecondBotShared.API;
using BetterSecondBotShared.IO;
using BetterSecondBotShared.Json;
using BetterSecondBotShared.logs;
using BetterSecondBotShared.Static;
using BetterSecondBotShared.API;
using BetterSecondBotShared.IO;
using BetterSecondBotShared.Json;
using BetterSecondBotShared.logs;
using BetterSecondBotShared.Static;
using EmbedIO;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace BetterSecondBot.WikiMake
{
class DebugModeCreateWiki
{
protected Dictionary<string, KeyValuePair<int, string>> api_reports = new Dictionary<string, KeyValuePair<int, string>>();
protected string html_header = "";
protected string html_footer = "";
protected string buildVersion = "";
protected SimpleIO io;
protected Dictionary<string, string> seen_command_names = new Dictionary<string, string>();
public string CreateRoot()
{
StringBuilder sb = new StringBuilder();
sb.Append(html_header);
sb.Append("<h3>Build: ");
sb.Append(buildVersion);
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>");
foreach (KeyValuePair<string, KeyValuePair<int, string>> entry in api_reports)
{
sb.Append("<tr>");
sb.Append("<td><a href='[[SUBFOLDER]]");
sb.Append(entry.Key);
sb.Append(".html'>");
sb.Append(entry.Key);
sb.Append("</a></td>");
sb.Append("<td>");
sb.Append(entry.Value.Key.ToString());
sb.Append("</td><td>");
sb.Append(entry.Value.Value);
sb.Append("</td></tr>");
}
sb.Append("</tbody></table>");
sb.Replace("[[AREA]]", "Home");
sb.Replace("[[SUBFOLDER]]", "files/");
sb.Replace("[[RETURNROOT]]", "");
sb = DebugModeCreateWiki.MenuActive(sb, "Home");
sb.Append(html_footer);
return sb.ToString();
}
protected static StringBuilder MenuActive(StringBuilder index, string area)
{
Dictionary<string, string> active_swaps = new Dictionary<string, string>
{
{ "CoreActive", "" },
{ "CLIActive", "" },
{ "JSONActive", "" },
{ "RLVapiActive", "" },
{ "HTTPActive", "" }
};
active_swaps["" + area + "Active"] = "Active";
foreach (KeyValuePair<string, string> pair in active_swaps)
{
index = index.Replace("[[" + pair.Key + "]]", pair.Value);
}
return index;
}
protected void InterfaceCommands(string area, API_supported_interface shared_interface, bool track_commands = false)
{
string[] cmds = shared_interface.GetCommandsList();
string interface_name = shared_interface.GetType().Name;
foreach (string c in cmds)
{
if (track_commands == true)
{
if (seen_command_names.ContainsKey(c) == false)
{
seen_command_names.Add(c, interface_name);
}
else
{
LogFormater.Debug("command " + c + " from " + interface_name + " overlaps an ready loaded command from " + seen_command_names[c] + "");
}
}
string workspace = shared_interface.GetCommandWorkspace(c);
StringBuilder sb = new StringBuilder();
sb.Append(html_header);
sb.Append("<h3>Build: ");
sb.Append(buildVersion);
sb.Append("</h3><br/>");
sb.Append("<h4>Interface: <a href='[[AREA]].html'>[[AREA]]</a>");
if (workspace != "")
{
sb.Append(" / <a href='[[AREA]][[WORKSPACE]].html'>[[WORKSPACE]]</a>");
}
sb.Append("</h4><hr/><h3>[[COMMAND]]</h3>");
int loop = 0;
int minargs = shared_interface.GetCommandArgs(c);
string[] arg_types = shared_interface.GetCommandArgTypes(c);
string[] arg_hints = shared_interface.GetCommandArgHints(c);
if (area == "Core")
{
StringBuilder ExampleCall = new StringBuilder();
ExampleCall.Append("Example: [[COMMAND]]");
ExampleCall.Append("|||");
string addon = "";
while (loop < minargs)
{
ExampleCall.Append(addon);
addon = "~#~";
string hint_value = "";
if (arg_hints.Length > loop)
{
if (arg_hints[loop] != null)
{
string[] bits = arg_hints[loop].Split("<br/>", StringSplitOptions.RemoveEmptyEntries);
if (bits.Length >= 1)
{
hint_value = bits[0];
}
}
}
if (hint_value != "")
{
ExampleCall.Append(hint_value);
}
else
{
ExampleCall.Append("?");
LogFormater.Debug("[WikiMake] " + area + " Command " + c + " missing some required hint values");
}
loop++;
}
sb.Append(ExampleCall.ToString());
sb.Append("<hr style='border-top: 1px dashed #dcdcdc;'>");
}
sb.Append("[[HELP]]");
if (arg_types.Length > 0)
{
sb.Append("<hr/><h4>Args helper</h4>");
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>");
while (loop < arg_types.Length)
{
string hint = "";
if (arg_hints.Length > loop)
{
hint = arg_hints[loop];
}
string Required = "X";
if ((loop + 1) > minargs)
{
Required = "";
}
sb.Append("<tr><td>" + (loop + 1).ToString() + "</td><td>" + arg_types[loop] + "</td><td>" + Required + "</td><td>" + hint + "</td></tr>");
loop++;
}
sb.Append("</tbody></table>");
}
sb.Append(html_footer);
sb.Replace("[[COMMAND]]", c);
sb.Replace("[[HELP]]", shared_interface.GetCommandHelp(c));
sb.Replace("[[MINARGS]]", minargs.ToString());
sb.Replace("[[WORKSPACE]]", workspace);
sb.Replace("[[AREA]]", area);
sb.Replace("[[SUBFOLDER]]", "");
sb.Replace("[[RETURNROOT]]", "../");
sb = DebugModeCreateWiki.MenuActive(sb, area);
string target_file = "" + area + "" + workspace + "" + c.ToLowerInvariant() + ".html";
io.writefile(target_file, sb.ToString());
}
}
protected void InterfaceWorkspaces(string area, API_supported_interface shared_interface)
{
string[] cmds = shared_interface.GetCommandsList();
foreach (string workspace in shared_interface.GetAllWorkspaces())
{
StringBuilder sb = new StringBuilder();
sb.Append(html_header);
sb.Append("<h3>Interface: <a href='[[AREA]].html'>[[AREA]]</a>");
if (workspace != "")
{
sb.Append(" / [[WORKSPACE]]");
}
sb.Append("</h3><br/>");
sb.Append("<h4>Build: ");
sb.Append(buildVersion);
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>");
foreach (string c in cmds)
{
if (shared_interface.GetCommandWorkspace(c) == workspace)
{
int args = shared_interface.GetCommandArgs(c);
sb.Append("<tr><td><a href='[[AREA]]");
sb.Append(workspace);
sb.Append(c.ToLowerInvariant());
sb.Append(".html'>");
sb.Append(c);
sb.Append("</a></td><td>");
sb.Append(args.ToString());
sb.Append("</td></tr>");
}
}
sb.Append("</tbody></table>");
sb.Replace("[[SUBFOLDER]]", "");
sb.Replace("[[RETURNROOT]]", "../");
sb.Replace("[[WORKSPACE]]", workspace);
sb.Replace("[[AREA]]", area);
sb.Append(html_footer);
sb = DebugModeCreateWiki.MenuActive(sb, area);
string target_file = "" + area + "" + workspace + ".html";
io.writefile(target_file, sb.ToString());
}
}
protected void InterfaceIndex(string area, API_supported_interface shared_interface)
{
StringBuilder sb = new StringBuilder();
sb.Append(html_header);
sb.Append("<h3>Interface:");
sb.Append(area);
sb.Append("</h3><br/>");
sb.Append("<h4>Build: ");
sb.Append(buildVersion);
sb.Append("</h4><br/>");
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>");
foreach (string workspace in shared_interface.GetAllWorkspaces())
{
int commands_count = 0;
foreach (string c in cmds)
{
if (shared_interface.GetCommandWorkspace(c) == workspace)
{
commands_count++;
}
}
string workspace_link = "<a href='[[AREA]]" + workspace + ".html'>" + workspace + "</a>";
sb.Append("<tr><td>");
sb.Append(workspace_link);
sb.Append("</td><td>");
sb.Append(commands_count.ToString());
sb.Append("</td></tr>");
}
sb.Append("</tbody></table>");
sb.Replace("[[SUBFOLDER]]", "");
sb.Replace("[[RETURNROOT]]", "../");
sb.Replace("[[AREA]]", area);
sb.Append(html_footer);
sb = DebugModeCreateWiki.MenuActive(sb, area);
io.writefile("" + area + ".html", sb.ToString());
}
protected void InterfaceWiki(string area, API_supported_interface shared_interface, bool track_commands = false)
{
LogFormater.Info("[WIKI] Starting area " + area + "");
// create index
InterfaceIndex(area, shared_interface);
// create workspaces
InterfaceWorkspaces(area, shared_interface);
// create commands
InterfaceCommands(area, shared_interface, track_commands);
LogFormater.Info("[WIKI] Done with area");
}
public DebugModeCreateWiki(string Version, SimpleIO shareio)
{
io = shareio;
buildVersion = Version;
html_header = helpers.ReadResourceFile(Assembly.GetExecutingAssembly(), "wiki_header.txt");
html_footer = helpers.ReadResourceFile(Assembly.GetExecutingAssembly(), "wiki_footer.txt");
io.ChangeRoot("wiki");
io.ChangeRoot("wiki/files");
// JSONcfg
MakeJsonConfig defaultJson = new MakeJsonConfig();
api_reports.Add("JSON", new KeyValuePair<int, string>(defaultJson.ApiCommandsCount, "Ready"));
InterfaceWiki("JSON", defaultJson);
// CMD
BSB.Commands.CoreCommandsInterface cmd = new BSB.Commands.CoreCommandsInterface(null);
api_reports.Add("Core", new KeyValuePair<int, string>(cmd.ApiCommandsCount, "Good"));
InterfaceWiki("Core", cmd, true);
// RLVapi
BSB.RLV.RLVcontrol RLVapi = new BSB.RLV.RLVcontrol(null);
api_reports.Add("RLVapi", new KeyValuePair<int, string>(RLVapi.ApiCommandsCount, "Limited"));
InterfaceWiki("RLVapi", RLVapi, true);
// HTTP
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace BetterSecondBot.WikiMake
{
class DebugModeCreateWiki
{
protected Dictionary<string, KeyValuePair<int, string>> api_reports = new Dictionary<string, KeyValuePair<int, string>>();
protected string html_header = "";
protected string html_footer = "";
protected string buildVersion = "";
protected SimpleIO io;
protected Dictionary<string, string> seen_command_names = new Dictionary<string, string>();
public string CreateRoot()
{
StringBuilder sb = new StringBuilder();
sb.Append(html_header);
sb.Append("<h3>Build: ");
sb.Append(buildVersion);
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>");
foreach (KeyValuePair<string, KeyValuePair<int, string>> entry in api_reports)
{
sb.Append("<tr>");
sb.Append("<td><a href='[[SUBFOLDER]]");
sb.Append(entry.Key);
sb.Append(".html'>");
sb.Append(entry.Key);
sb.Append("</a></td>");
sb.Append("<td>");
sb.Append(entry.Value.Key.ToString());
sb.Append("</td><td>");
sb.Append(entry.Value.Value);
sb.Append("</td></tr>");
}
sb.Append("</tbody></table>");
sb.Replace("[[AREA]]", "Home");
sb.Replace("[[SUBFOLDER]]", "files/");
sb.Replace("[[RETURNROOT]]", "");
sb = DebugModeCreateWiki.MenuActive(sb, "Home");
sb.Append(html_footer);
return sb.ToString();
}
protected static StringBuilder MenuActive(StringBuilder index, string area)
{
Dictionary<string, string> active_swaps = new Dictionary<string, string>
{
{ "CoreActive", "" },
{ "CLIActive", "" },
{ "JSONActive", "" },
{ "RLVapiActive", "" },
{ "HTTPActive", "" }
};
active_swaps["" + area + "Active"] = "Active";
foreach (KeyValuePair<string, string> pair in active_swaps)
{
index = index.Replace("[[" + pair.Key + "]]", pair.Value);
}
return index;
}
protected void InterfaceCommands(string area, API_supported_interface shared_interface, bool track_commands = false)
{
string[] cmds = shared_interface.GetCommandsList();
string interface_name = shared_interface.GetType().Name;
foreach (string c in cmds)
{
if (track_commands == true)
{
if (seen_command_names.ContainsKey(c) == false)
{
seen_command_names.Add(c, interface_name);
}
else
{
LogFormater.Debug("command " + c + " from " + interface_name + " overlaps an ready loaded command from " + seen_command_names[c] + "");
}
}
string workspace = shared_interface.GetCommandWorkspace(c);
StringBuilder sb = new StringBuilder();
sb.Append(html_header);
sb.Append("<h3>Build: ");
sb.Append(buildVersion);
sb.Append("</h3><br/>");
sb.Append("<h4>Interface: <a href='[[AREA]].html'>[[AREA]]</a>");
if (workspace != "")
{
sb.Append(" / <a href='[[AREA]][[WORKSPACE]].html'>[[WORKSPACE]]</a>");
}
sb.Append("</h4><hr/><h3>[[COMMAND]]</h3>");
int loop = 0;
int minargs = shared_interface.GetCommandArgs(c);
string[] arg_types = shared_interface.GetCommandArgTypes(c);
string[] arg_hints = shared_interface.GetCommandArgHints(c);
if (area == "Core")
{
StringBuilder ExampleCall = new StringBuilder();
ExampleCall.Append("Example: [[COMMAND]]");
ExampleCall.Append("|||");
string addon = "";
while (loop < minargs)
{
ExampleCall.Append(addon);
addon = "~#~";
string hint_value = "";
if (arg_hints.Length > loop)
{
if (arg_hints[loop] != null)
{
string[] bits = arg_hints[loop].Split("<br/>", StringSplitOptions.RemoveEmptyEntries);
if (bits.Length >= 1)
{
hint_value = bits[0];
}
}
}
if (hint_value != "")
{
ExampleCall.Append(hint_value);
}
else
{
ExampleCall.Append("?");
LogFormater.Debug("[WikiMake] " + area + " Command " + c + " missing some required hint values");
}
loop++;
}
sb.Append(ExampleCall.ToString());
sb.Append("<hr style='border-top: 1px dashed #dcdcdc;'>");
}
sb.Append("[[HELP]]");
if (arg_types.Length > 0)
{
sb.Append("<hr/><h4>Args helper</h4>");
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>");
while (loop < arg_types.Length)
{
string hint = "";
if (arg_hints.Length > loop)
{
hint = arg_hints[loop];
}
string Required = "X";
if ((loop + 1) > minargs)
{
Required = "";
}
sb.Append("<tr><td>" + (loop + 1).ToString() + "</td><td>" + arg_types[loop] + "</td><td>" + Required + "</td><td>" + hint + "</td></tr>");
loop++;
}
sb.Append("</tbody></table>");
}
sb.Append(html_footer);
sb.Replace("[[COMMAND]]", c);
sb.Replace("[[HELP]]", shared_interface.GetCommandHelp(c));
sb.Replace("[[MINARGS]]", minargs.ToString());
sb.Replace("[[WORKSPACE]]", workspace);
sb.Replace("[[AREA]]", area);
sb.Replace("[[SUBFOLDER]]", "");
sb.Replace("[[RETURNROOT]]", "../");
sb = DebugModeCreateWiki.MenuActive(sb, area);
string target_file = "" + area + "" + workspace + "" + c.ToLowerInvariant() + ".html";
io.writefile(target_file, sb.ToString());
}
}
protected void InterfaceWorkspaces(string area, API_supported_interface shared_interface)
{
string[] cmds = shared_interface.GetCommandsList();
foreach (string workspace in shared_interface.GetAllWorkspaces())
{
StringBuilder sb = new StringBuilder();
sb.Append(html_header);
sb.Append("<h3>Interface: <a href='[[AREA]].html'>[[AREA]]</a>");
if (workspace != "")
{
sb.Append(" / [[WORKSPACE]]");
}
sb.Append("</h3><br/>");
sb.Append("<h4>Build: ");
sb.Append(buildVersion);
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>");
foreach (string c in cmds)
{
if (shared_interface.GetCommandWorkspace(c) == workspace)
{
int args = shared_interface.GetCommandArgs(c);
sb.Append("<tr><td><a href='[[AREA]]");
sb.Append(workspace);
sb.Append(c.ToLowerInvariant());
sb.Append(".html'>");
sb.Append(c);
sb.Append("</a></td><td>");
sb.Append(args.ToString());
sb.Append("</td></tr>");
}
}
sb.Append("</tbody></table>");
sb.Replace("[[SUBFOLDER]]", "");
sb.Replace("[[RETURNROOT]]", "../");
sb.Replace("[[WORKSPACE]]", workspace);
sb.Replace("[[AREA]]", area);
sb.Append(html_footer);
sb = DebugModeCreateWiki.MenuActive(sb, area);
string target_file = "" + area + "" + workspace + ".html";
io.writefile(target_file, sb.ToString());
}
}
protected void InterfaceIndex(string area, API_supported_interface shared_interface)
{
StringBuilder sb = new StringBuilder();
sb.Append(html_header);
sb.Append("<h3>Interface:");
sb.Append(area);
sb.Append("</h3><br/>");
sb.Append("<h4>Build: ");
sb.Append(buildVersion);
sb.Append("</h4><br/>");
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>");
foreach (string workspace in shared_interface.GetAllWorkspaces())
{
int commands_count = 0;
foreach (string c in cmds)
{
if (shared_interface.GetCommandWorkspace(c) == workspace)
{
commands_count++;
}
}
string workspace_link = "<a href='[[AREA]]" + workspace + ".html'>" + workspace + "</a>";
sb.Append("<tr><td>");
sb.Append(workspace_link);
sb.Append("</td><td>");
sb.Append(commands_count.ToString());
sb.Append("</td></tr>");
}
sb.Append("</tbody></table>");
sb.Replace("[[SUBFOLDER]]", "");
sb.Replace("[[RETURNROOT]]", "../");
sb.Replace("[[AREA]]", area);
sb.Append(html_footer);
sb = DebugModeCreateWiki.MenuActive(sb, area);
io.writefile("" + area + ".html", sb.ToString());
}
protected void InterfaceWiki(string area, API_supported_interface shared_interface, bool track_commands = false)
{
LogFormater.Info("[WIKI] Starting area " + area + "");
// create index
InterfaceIndex(area, shared_interface);
// create workspaces
InterfaceWorkspaces(area, shared_interface);
// create commands
InterfaceCommands(area, shared_interface, track_commands);
LogFormater.Info("[WIKI] Done with area");
}
public DebugModeCreateWiki(string Version, SimpleIO shareio)
{
io = shareio;
buildVersion = Version;
html_header = helpers.ReadResourceFile(Assembly.GetExecutingAssembly(), "wiki_header.txt");
html_footer = helpers.ReadResourceFile(Assembly.GetExecutingAssembly(), "wiki_footer.txt");
io.ChangeRoot("wiki");
io.ChangeRoot("wiki/files");
// JSONcfg
MakeJsonConfig defaultJson = new MakeJsonConfig();
api_reports.Add("JSON", new KeyValuePair<int, string>(defaultJson.ApiCommandsCount, "Ready"));
InterfaceWiki("JSON", defaultJson);
// CMD
BetterSecondBot.Commands.CoreCommandsInterface cmd = new BetterSecondBot.Commands.CoreCommandsInterface(null);
api_reports.Add("Core", new KeyValuePair<int, string>(cmd.ApiCommandsCount, "Good"));
InterfaceWiki("Core", cmd, true);
// RLVapi
BetterSecondBot.RLV.RLVcontrol RLVapi = new BetterSecondBot.RLV.RLVcontrol(null);
api_reports.Add("RLVapi", new KeyValuePair<int, string>(RLVapi.ApiCommandsCount, "Limited"));
InterfaceWiki("RLVapi", RLVapi, true);
// HTTP
HTTPWiki();
io.ChangeRoot("wiki");
io.writefile("index.html", CreateRoot());
}
io.ChangeRoot("wiki");
io.writefile("index.html", CreateRoot());
}
protected void HTTPWiki()
{
LogFormater.Info("[WIKI] Starting area HTTP endpoint");
LogFormater.Info("[WIKI] Starting area HTTP endpoint");
HTTPendpoint HTTP = new HTTPendpoint();
HTTPmenu("HTTP", HTTP);
// create workspaces
HTTPWorkspaces("HTTP", HTTP);
// create commands
HTTPCommands("HTTP", HTTP);
HTTP = null;
HTTPmenu("HTTP", HTTP);
// create workspaces
HTTPWorkspaces("HTTP", HTTP);
// create commands
HTTPCommands("HTTP", HTTP);
HTTP = null;
LogFormater.Info("[WIKI] Done with area");
}
}
protected string getURLargs(Dictionary<string, KeyValuePair<string, string>> values)
{
List<string> urlargs = new List<string>();
@ -333,13 +333,13 @@ namespace BetterSecondBot.WikiMake
}
}
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))
{
StringBuilder sb = new StringBuilder();
@ -742,4 +742,4 @@ namespace BetterSecondBot.WikiMake
}
}
}
}
}

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.Animation
namespace BetterSecondBot.Commands.Animation
{
public class PlayGesture : CoreCommand_1arg
{

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.Animation
namespace BetterSecondBot.Commands.Animation
{
public class AddToAllowAnimations : CoreCommand_1arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Animation
namespace BetterSecondBot.Commands.Animation
{
public class ResetAnimations : CoreCommand
{

View file

@ -5,7 +5,7 @@ using System.Linq;
using OpenMetaverse;
using Newtonsoft.Json;
namespace BSB.Commands.Avatars
namespace BetterSecondBot.Commands.Avatars
{
class RoleCreate : CoreCommand_SmartReply_1arg
{
@ -15,17 +15,17 @@ namespace BSB.Commands.Avatars
if (base.CallFunction(args) == true)
{
Dictionary<string, string> collection = new Dictionary<string, string>();
foreach(Avatar av in bot.GetClient.Network.CurrentSim.ObjectsAvatars.Copy().Values)
{
Vector3 pos = new Vector3(1, 1, 1);
if(bot.GetClient.Network.CurrentSim.AvatarPositions.ContainsKey(av.ID) == true)
{
pos = bot.GetClient.Network.CurrentSim.AvatarPositions[av.ID];
}
Dictionary<string, string> entrys = new Dictionary<string, string>();
entrys.Add("Username",av.Name);
entrys.Add("Pos", pos.X.ToString() + "," + pos.Y.ToString() + "," + pos.Z.ToString());
collection.Add(av.ID.ToString(), JsonConvert.SerializeObject(entrys));
foreach(Avatar av in bot.GetClient.Network.CurrentSim.ObjectsAvatars.Copy().Values)
{
Vector3 pos = new Vector3(1, 1, 1);
if(bot.GetClient.Network.CurrentSim.AvatarPositions.ContainsKey(av.ID) == true)
{
pos = bot.GetClient.Network.CurrentSim.AvatarPositions[av.ID];
}
Dictionary<string, string> entrys = new Dictionary<string, string>();
entrys.Add("Username",av.Name);
entrys.Add("Pos", pos.X.ToString() + "," + pos.Y.ToString() + "," + pos.Z.ToString());
collection.Add(av.ID.ToString(), JsonConvert.SerializeObject(entrys));
}
return bot.GetCommandsInterface.SmartCommandReply(true, args[0], "ok", CommandName, collection);
}

View file

@ -5,7 +5,7 @@ using System.Linq;
using OpenMetaverse;
namespace BSB.Commands.Avatars
namespace BetterSecondBot.Commands.Avatars
{
public class PayAvatar : CoreCommand_2arg
{

View file

@ -2,7 +2,7 @@
using Newtonsoft.Json;
using OpenMetaverse;
namespace BSB.Commands.Chat
namespace BetterSecondBot.Commands.Chat
{
class LocalChatHistory : CoreCommand_SmartReply_1arg
{

View file

@ -1,7 +1,7 @@
using OpenMetaverse;
using BetterSecondBotShared.Static;
namespace BSB.Commands.Chat
namespace BetterSecondBot.Commands.Chat
{
class IM : CoreCommand_2arg
{

View file

@ -1,7 +1,7 @@
using System.Linq;
using OpenMetaverse;
namespace BSB.Commands.Chat
namespace BetterSecondBot.Commands.Chat
{
class Say : CoreCommand_1arg
{

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.Dialogs
namespace BetterSecondBot.Commands.Dialogs
{
class DialogRelay : CoreCommand_1arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Dialogs
namespace BetterSecondBot.Commands.Dialogs
{
class DialogResponce : CoreCommand_2arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Dialogs
namespace BetterSecondBot.Commands.Dialogs
{
class DialogTrack : CoreCommand_1arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_AddRole : CoreCommand_4arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_BanMember : CoreCommand_3arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_BulkClear_Messages : CoreCommand_3arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_Dm_Member : CoreCommand_4arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_MembersList : CoreCommand_SmartReply_2arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_MessageChannel : CoreCommand_4arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_MuteMember : CoreCommand_3arg
{

View file

@ -4,12 +4,12 @@ using System.Text;
using System.Linq;
using OpenMetaverse;
using Newtonsoft.Json;
using Discord.WebSocket;
using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
using Discord.WebSocket;
using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_RoleCreate : CoreCommand_SmartReply_3arg
{
@ -20,28 +20,28 @@ namespace BSB.Commands.DiscordAPI
{
if (base.CallFunction(args) == true)
{
if(bot.discordReady() == false)
{
return bot.GetCommandsInterface.SmartCommandReply(false, args[0], bot.getDiscordWhyFailed(), CommandName);
if(bot.discordReady() == false)
{
return bot.GetCommandsInterface.SmartCommandReply(false, args[0], bot.getDiscordWhyFailed(), CommandName);
}
KeyValuePair<string, ulong> reply = CreateRole(args).Result;
Dictionary<string, string> collection = new Dictionary<string, string>();
collection.Add("roleid", reply.Value.ToString());
Dictionary<string, string> collection = new Dictionary<string, string>();
collection.Add("roleid", reply.Value.ToString());
return bot.GetCommandsInterface.SmartCommandReply(true, args[0], "ok", CommandName, collection);
}
return bot.GetCommandsInterface.SmartCommandReply(false, args[0], "incorrect args", CommandName);
}
protected async Task<KeyValuePair<string,ulong>> CreateRole(string[] args)
{
DiscordSocketClient Discord = bot.getDiscordClient();
if (ulong.TryParse(args[1], out ulong serverid) == true)
{
SocketGuild server = Discord.GetGuild(serverid);
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>("Unable to process server id", 0);
protected async Task<KeyValuePair<string,ulong>> CreateRole(string[] args)
{
DiscordSocketClient Discord = bot.getDiscordClient();
if (ulong.TryParse(args[1], out ulong serverid) == true)
{
SocketGuild server = Discord.GetGuild(serverid);
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>("Unable to process server id", 0);
}
}
}

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_RoleList: CoreCommand_SmartReply_2arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_RoleRemove: CoreCommand_SmartReply_3arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_Role_GetSettings : CoreCommand_SmartReply_3arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_Role_UpdatePerms : CoreCommand_4arg
{

View file

@ -9,7 +9,7 @@ using Discord;
using Discord.Rest;
using System.Threading.Tasks;
namespace BSB.Commands.DiscordAPI
namespace BetterSecondBot.Commands.DiscordAPI
{
class Discord_TextChannels_List : CoreCommand_SmartReply_2arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Estate
namespace BetterSecondBot.Commands.Estate
{
public class EstateParcelReclaim : CoreCommand
{

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.Estate
namespace BetterSecondBot.Commands.Estate
{
public class GetSimGlobalPos : CoreCommand_SmartReply_2arg
{

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.Estate
namespace BetterSecondBot.Commands.Estate
{
public class GetSimTexture : CoreCommand_SmartReply_2arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Estate
namespace BetterSecondBot.Commands.Estate
{
public class SimMessage : CoreCommand_1arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Estate
namespace BetterSecondBot.Commands.Estate
{
public class SimRestart : CoreCommand_1arg
{

View file

@ -1,6 +1,6 @@
using System;
using OpenMetaverse;
namespace BSB.Commands.Friends
namespace BetterSecondBot.Commands.Friends
{
public class FriendFullPerms : CoreCommand_2arg
{

View file

@ -1,6 +1,6 @@
using System;
using OpenMetaverse;
namespace BSB.Commands.Friends
namespace BetterSecondBot.Commands.Friends
{
public class FriendRequest : CoreCommand_1arg
{

View file

@ -1,6 +1,6 @@
using System;
using OpenMetaverse;
namespace BSB.Commands.Friends
namespace BetterSecondBot.Commands.Friends
{
public class Friendslist : CoreCommand_SmartReply_1arg
{

View file

@ -3,7 +3,7 @@ using System;
using System.Collections.Generic;
using System.Text;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
class GroupActiveGroup : CoreCommand_1arg
{

View file

@ -3,7 +3,7 @@ using System;
using System.Collections.Generic;
using System.Text;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
class GroupActiveTitle : CoreCommand_2arg
{

View file

@ -2,7 +2,7 @@
using OpenMetaverse;
using BetterSecondBotShared.logs;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
class GroupAddRole : CoreCommand_3arg
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using OpenMetaverse;
using BetterSecondBotShared.logs;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
public class GroupEject : CoreCommand_2arg
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using OpenMetaverse;
using BetterSecondBotShared.logs;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
public class GroupInvite : CoreCommand_2arg
{

View file

@ -4,7 +4,7 @@ using System;
using System.Collections.Generic;
using System.Text;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
class GroupInviteNoLimiter: CoreCommand_2arg
{

View file

@ -1,7 +1,7 @@
using BetterSecondBotShared.Static;
using OpenMetaverse;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
class Groupnotice : CoreCommand_2arg
{

View file

@ -4,7 +4,7 @@ using System.Text;
using Newtonsoft.Json;
using OpenMetaverse;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
public class IsGroupMember : CoreCommand_3arg
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
public class GetGroupList : CoreGroupCommand_SmartReply_auto
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
public class GetGroupMembers : CoreCommand_2arg
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
public class GetGroupRoles : CoreGroupCommand_SmartReply_Group
{

View file

@ -1,7 +1,7 @@
using OpenMetaverse;
using System.Collections.Generic;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
public abstract class CoreGroupCommand_SmartReply_auto : CoreCommand_SmartReply_1arg
{

View file

@ -1,7 +1,7 @@
using OpenMetaverse;
using System;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
class Groupchat : CoreCommand_2arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
class GroupchatAnyUnread : CoreGroupCommand_SmartReply_auto
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
class GroupchatClearAll : CoreCommand
{

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
class GroupchatGroupHasUnread : CoreGroupCommand_SmartReply_Group_auto
{

View file

@ -3,7 +3,7 @@ using System.Linq;
using Microsoft.VisualBasic.CompilerServices;
using OpenMetaverse;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
class GroupchatHistory : CoreGroupCommand_SmartReply_Group_auto
{

View file

@ -1,7 +1,7 @@
using OpenMetaverse;
using System.Text;
namespace BSB.Commands.Group
namespace BetterSecondBot.Commands.Group
{
public class GroupchatListAllUnreadGroups : CoreGroupCommand_SmartReply_auto
{

View file

@ -2,7 +2,7 @@
using System.Threading;
using OpenMetaverse;
namespace BSB.Commands.Helpers
namespace BetterSecondBot.Commands.Helpers
{
public class Delay : CoreCommand_1arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Home
namespace BetterSecondBot.Commands.Home
{
public class GoHome : CoreCommand
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Home
namespace BetterSecondBot.Commands.Home
{
public class ResetAtHome : CoreCommand
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Info
namespace BetterSecondBot.Commands.Info
{
public class Balance : CoreCommand_SmartReply_1arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Info
namespace BetterSecondBot.Commands.Info
{
public class GetPosition : CoreCommand_SmartReply_1arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Info
namespace BetterSecondBot.Commands.Info
{
public class ParcelName : ParcelCommand_CheckParcel_1arg_smart
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Info
namespace BetterSecondBot.Commands.Info
{
public class SimName : CoreCommand_SmartReply_1arg
{

View file

@ -1,6 +1,6 @@
using BetterSecondBotShared.Static;
namespace BSB.Commands.Info
namespace BetterSecondBot.Commands.Info
{
public class UnixTimeNow : CoreCommand_SmartReply_1arg
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using OpenMetaverse;
namespace BSB.Commands.Inventory
namespace BetterSecondBot.Commands.Inventory
{
public class DeleteInventoryItem : CoreCommand_1arg
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using OpenMetaverse;
namespace BSB.Commands.Inventory
namespace BetterSecondBot.Commands.Inventory
{
public class InventoryPurgeNotecards : CoreCommand
{

View file

@ -1,7 +1,7 @@
using BSB.Static;
using BetterSecondBot.Static;
using OpenMetaverse;
namespace BSB.Commands.Inventory
namespace BetterSecondBot.Commands.Inventory
{
public class RenameInventory : CoreCommand_3arg
{

View file

@ -2,7 +2,7 @@
using System.Linq;
using OpenMetaverse;
namespace BSB.Commands.Inventory
namespace BetterSecondBot.Commands.Inventory
{
public class Attach : CoreCommand_2arg
{

View file

@ -1,7 +1,7 @@
using BSB.Static;
using BetterSecondBot.Static;
using OpenMetaverse;
namespace BSB.Commands.Inventory
namespace BetterSecondBot.Commands.Inventory
{
public class getRealUUID : CoreCommand_2arg
{

View file

@ -1,10 +1,10 @@
using System;
using OpenMetaverse;
using BSB.Static;
using BetterSecondBot.Static;
using BetterSecondBotShared.Static;
using System.Collections.Generic;
namespace BSB.Commands.Inventory
namespace BetterSecondBot.Commands.Inventory
{
public class InventoryContents : CoreCommand_2arg

View file

@ -1,7 +1,7 @@
using OpenMetaverse;
using BSB.Static;
using BetterSecondBot.Static;
namespace BSB.Commands.Inventory
namespace BetterSecondBot.Commands.Inventory
{
public class InventoryFolders : CoreCommand_1arg
{

View file

@ -1,7 +1,7 @@
using System.Collections.Generic;
using OpenMetaverse;
namespace BSB.Commands.Inventory
namespace BetterSecondBot.Commands.Inventory
{
public class Outfit : CoreCommand_1arg
{

View file

@ -1,7 +1,7 @@
using BSB.Static;
using BetterSecondBot.Static;
using OpenMetaverse;
namespace BSB.Commands.Inventory
namespace BetterSecondBot.Commands.Inventory
{
public class SendFolder : CoreCommand_2arg
{

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.Inventory
namespace BetterSecondBot.Commands.Inventory
{
public class SendItem : CoreCommand_2arg
{

View file

@ -1,10 +1,8 @@
using System;
using BetterSecondBotShared.Static;
using OpenMetaverse;
using BetterSecondBotShared.Static;
using System.Runtime.CompilerServices;
using System.Threading;
namespace BSB.Commands.Movement
namespace BetterSecondBot.Commands.Movement
{
public class AutoPilot : CoreCommand_1arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Movement
namespace BetterSecondBot.Commands.Movement
{
public class AutoPilotStop : CoreCommand
{

View file

@ -1,6 +1,6 @@
using System.Threading;
namespace BSB.Commands.Movement
namespace BetterSecondBot.Commands.Movement
{
public class BotFly : CoreCommand_1arg
{

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.Movement
namespace BetterSecondBot.Commands.Movement
{
public class RequestTeleport : CoreCommand_1arg
{

View file

@ -1,6 +1,6 @@
using System;
using OpenMetaverse;
namespace BSB.Commands.Movement
namespace BetterSecondBot.Commands.Movement
{
public class RotateToFace : CoreCommand_1arg
{

View file

@ -1,7 +1,7 @@
using System;
using BetterSecondBotShared.Static;
using OpenMetaverse;
namespace BSB.Commands.Movement
namespace BetterSecondBot.Commands.Movement
{
public class RotateToFaceVector : CoreCommand_1arg
{

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.Movement
namespace BetterSecondBot.Commands.Movement
{
public class SendTeleportLure : CoreCommand_1arg
{

View file

@ -1,6 +1,6 @@
using System;
using OpenMetaverse;
namespace BSB.Commands.Movement
namespace BetterSecondBot.Commands.Movement
{
public class RotateTo : CoreCommand_1arg
{

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.Movement
namespace BetterSecondBot.Commands.Movement
{
public class Teleport : CoreCommand_1arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Notecard
namespace BetterSecondBot.Commands.Notecard
{
class NotecardAdd : CoreCommand_2arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.Notecard
namespace BetterSecondBot.Commands.Notecard
{
class NotecardClear : CoreCommand_1arg
{

View file

@ -1,7 +1,7 @@
using BetterSecondBotShared.Static;
using OpenMetaverse;
namespace BSB.Commands.Notecard
namespace BetterSecondBot.Commands.Notecard
{
class NotecardSend : CoreCommand_2arg
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.CMD_Parcel
namespace BetterSecondBot.Commands.CMD_Parcel
{
public class AbandonLand : ParcelCommand_RequirePerms
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using static OpenMetaverse.ParcelManager;
namespace BSB.Commands.Parcel
namespace BetterSecondBot.Commands.Parcel
{
class GetParcelBanlist : ParcelCommand_CheckParcel_1arg_smart
{

View file

@ -1,4 +1,4 @@
namespace BSB.Commands.CMD_Parcel
namespace BetterSecondBot.Commands.CMD_Parcel
{
public class GetParcelDesc : ParcelCommand_CheckParcel_1arg_smart
{

View file

@ -4,7 +4,7 @@ using BetterSecondBotShared.logs;
using BetterSecondBotShared.Static;
using OpenMetaverse;
namespace BSB.Commands.CMD_Parcel
namespace BetterSecondBot.Commands.CMD_Parcel
{
public class GetParcelFlags : CoreCommand_1arg
{

View file

@ -1,7 +1,7 @@
using OpenMetaverse;
using static OpenMetaverse.ParcelManager;
namespace BSB.Commands.CMD_Parcel
namespace BetterSecondBot.Commands.CMD_Parcel
{
public class ParcelBan : CoreCommand_1arg
{

View file

@ -1,6 +1,6 @@
using OpenMetaverse;
namespace BSB.Commands.CMD_Parcel
namespace BetterSecondBot.Commands.CMD_Parcel
{
class ParcelBuy : ParcelCommand_CheckParcel
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Threading;
using OpenMetaverse;
namespace BSB.Commands.CMD_Parcel
namespace BetterSecondBot.Commands.CMD_Parcel
{
public class ParcelCleanAndSell : ParcelCommand_RequirePerms_1arg
{

Some files were not shown because too many files have changed in this diff Show more