Bump version to 1.1.4
Added build script to solution files Added address to configure client connection destination (if proxied) Added automatic semantic versioning build
This commit is contained in:
@ -11,8 +11,11 @@ public class BotConfiguration : IBotConfiguration, IBotConfigurator {
|
||||
[JsonProperty("token", Required = Required.Always)]
|
||||
[Option('t', "token", HelpText = "The Discord bot token", Required = true)]
|
||||
public string Token { get; init; } = default!;
|
||||
[JsonProperty("address", Required = Required.Always)]
|
||||
[Option('a', "address", HelpText = "The connection string for the websocket", Required = true)]
|
||||
public string Address { get; init; } = default!;
|
||||
[JsonProperty("port", Required = Required.DisallowNull)]
|
||||
[Option('p', "port", Default = DEFAULT_PORT, HelpText = "The websocket server port")]
|
||||
[Option('p', "port", Default = DEFAULT_PORT, HelpText = "The websocket server listen port")]
|
||||
public int Port { get; init; } = DEFAULT_PORT;
|
||||
[JsonProperty("channels", Required = Required.Always)]
|
||||
[Option('c', "channel", HelpText = "The list of whitelisted channels", Required = true, Min = 1)]
|
||||
|
@ -210,6 +210,7 @@ local function playerStatusEventListener(socket)
|
||||
break
|
||||
end
|
||||
printError("playerDetector not connected!")
|
||||
sleep(5)
|
||||
end
|
||||
while true do
|
||||
local pd = peripheral.find("playerDetector")
|
||||
|
@ -6,7 +6,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<Version>1.1.3</Version>
|
||||
<Version>1.1.4</Version>
|
||||
<Authors>Michael Chen</Authors>
|
||||
<Company>$(Authors)</Company>
|
||||
<RepositoryUrl>https://gitlab.com/chenmichael/mcdiscordbot</RepositoryUrl>
|
||||
|
@ -50,7 +50,7 @@ public class Program : IDisposable, ICommandHandler<ResponseType>, IUserRoleMana
|
||||
if (stream is null) throw new FileNotFoundException("Client script could not be loaded!");
|
||||
using var sr = new StreamReader(stream);
|
||||
return sr.ReadToEnd()
|
||||
.Replace("$HOST", $"ws://{config.SocketHost}:{config.Port}");
|
||||
.Replace("$HOST", config.Address);
|
||||
}
|
||||
|
||||
private Task Broadcast(Func<ITextChannel, Task<IUserMessage>> message)
|
||||
|
Reference in New Issue
Block a user