Fix the !!help command. Add configuration attribute to specify hostname
This commit is contained in:
parent
fc583603d4
commit
ec53b14ec0
3 changed files with 4 additions and 3 deletions
|
@ -6,7 +6,7 @@ using System.Reflection;
|
|||
[assembly: AssemblyCompany("ZNI")]
|
||||
[assembly: AssemblyAlgorithmId(System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5)]
|
||||
[assembly: AssemblyCopyright("© 2020 Tara Piccari")]
|
||||
[assembly: AssemblyFileVersion("5.1.949")]
|
||||
[assembly: AssemblyFileVersion("5.1.950")]
|
||||
[assembly: AssemblyDescription("Second Life Bot - BotCore5")]
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@ namespace Bot.Assemble
|
|||
public class ASMInfo
|
||||
{
|
||||
public static string BotName = "ZBotCore";
|
||||
public static string BotVer = "5.1.949";
|
||||
public static string BotVer = "5.1.950";
|
||||
public static string GitPassword
|
||||
{
|
||||
get
|
||||
|
|
|
@ -136,7 +136,7 @@ namespace Bot.CommandSystem
|
|||
[CommandGroup("bot.help", 0, 0, "Alias to !help", MessageHandler.Destinations.DEST_AGENT | MessageHandler.Destinations.DEST_LOCAL | MessageHandler.Destinations.DEST_GROUP)]
|
||||
public void PrintAllHelp(UUID client, int level, GridClient grid, string[] additionalArgs, MessageHandler.MessageHandleEvent MHE, MessageHandler.Destinations source, CommandRegistry registry, UUID agentKey, string agentName)
|
||||
{
|
||||
MHE(source, client, "All commands viewable at: https://zontreck.dev:35591/help");
|
||||
MHE(source, client, $"All commands viewable at: https://{MainConfiguration.Instance.WebServerIP}:{MainConfiguration.Instance.WebServerPort}/help");
|
||||
}
|
||||
// !help "command"
|
||||
[CommandGroup("help", 0, 1, "Prints help for one command", MessageHandler.Destinations.DEST_AGENT | MessageHandler.Destinations.DEST_LOCAL | MessageHandler.Destinations.DEST_GROUP | MessageHandler.Destinations.DEST_CONSOLE_INFO)]
|
||||
|
|
|
@ -60,6 +60,7 @@ namespace Bot
|
|||
public double AutoRelogAfterHours = 12;
|
||||
|
||||
public int WebServerPort { get; set; } = 35591;
|
||||
public string WebServerIP { get; set; } = "zontreck.dev";
|
||||
|
||||
public Dictionary<UUID, int> BotAdmins { get; set; } = new Dictionary<UUID, int>();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue