mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-18 09:35:48 +00:00
Nuget package updates
- Microsoft.Extensions - updated discord modules to check for null response.
This commit is contained in:
parent
e8da8862bf
commit
f416b5cd78
4 changed files with 22 additions and 3 deletions
|
|
@ -1368,6 +1368,7 @@
|
||||||
<sys:String x:Key="DiscordBot_ProfileNotFound">Profile/Alias '{0}' was not found or is not associated with the channel.</sys:String>
|
<sys:String x:Key="DiscordBot_ProfileNotFound">Profile/Alias '{0}' was not found or is not associated with the channel.</sys:String>
|
||||||
<sys:String x:Key="DiscordBot_ProfileBadStatus">Profile '{0}' is in a state '{1}' that cannot run this command.</sys:String>
|
<sys:String x:Key="DiscordBot_ProfileBadStatus">Profile '{0}' is in a state '{1}' that cannot run this command.</sys:String>
|
||||||
<sys:String x:Key="DiscordBot_ProfileUpdating">Profile '{0}' is currently being updated.</sys:String>
|
<sys:String x:Key="DiscordBot_ProfileUpdating">Profile '{0}' is currently being updated.</sys:String>
|
||||||
|
<sys:String x:Key="DiscordBot_NoChannelProfiles">No profiles are associated with the channel.</sys:String>
|
||||||
|
|
||||||
<sys:String x:Key="DiscordBot_InfoFailed">Call to server '{0}' failed.</sys:String>
|
<sys:String x:Key="DiscordBot_InfoFailed">Call to server '{0}' failed.</sys:String>
|
||||||
<sys:String x:Key="DiscordBot_BackupRequested">A backup request for server '{0}' has been sent.</sys:String>
|
<sys:String x:Key="DiscordBot_BackupRequested">A backup request for server '{0}' has been sent.</sys:String>
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
||||||
{
|
{
|
||||||
foreach (var output in response)
|
foreach (var output in response)
|
||||||
{
|
{
|
||||||
|
if (output is null)
|
||||||
|
continue;
|
||||||
await ReplyAsync(output.Replace("&", "_"));
|
await ReplyAsync(output.Replace("&", "_"));
|
||||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
@ -76,6 +78,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
||||||
{
|
{
|
||||||
foreach (var output in response)
|
foreach (var output in response)
|
||||||
{
|
{
|
||||||
|
if (output is null)
|
||||||
|
continue;
|
||||||
await ReplyAsync(output.Replace("&", "_"));
|
await ReplyAsync(output.Replace("&", "_"));
|
||||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
@ -109,6 +113,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
||||||
{
|
{
|
||||||
foreach (var output in response)
|
foreach (var output in response)
|
||||||
{
|
{
|
||||||
|
if (output is null)
|
||||||
|
continue;
|
||||||
await ReplyAsync(output.Replace("&", "_"));
|
await ReplyAsync(output.Replace("&", "_"));
|
||||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
@ -142,6 +148,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
||||||
{
|
{
|
||||||
foreach (var output in response)
|
foreach (var output in response)
|
||||||
{
|
{
|
||||||
|
if (output is null)
|
||||||
|
continue;
|
||||||
await ReplyAsync(output.Replace("&", "_"));
|
await ReplyAsync(output.Replace("&", "_"));
|
||||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
@ -175,6 +183,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
||||||
{
|
{
|
||||||
foreach (var output in response)
|
foreach (var output in response)
|
||||||
{
|
{
|
||||||
|
if (output is null)
|
||||||
|
continue;
|
||||||
await ReplyAsync(output.Replace("&", "_"));
|
await ReplyAsync(output.Replace("&", "_"));
|
||||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
@ -208,6 +218,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
||||||
{
|
{
|
||||||
foreach (var output in response)
|
foreach (var output in response)
|
||||||
{
|
{
|
||||||
|
if (output is null)
|
||||||
|
continue;
|
||||||
await ReplyAsync(output.Replace("&", "_"));
|
await ReplyAsync(output.Replace("&", "_"));
|
||||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
||||||
{
|
{
|
||||||
foreach (var output in response)
|
foreach (var output in response)
|
||||||
{
|
{
|
||||||
|
if (output is null)
|
||||||
|
continue;
|
||||||
await ReplyAsync(output.Replace("&", "_"));
|
await ReplyAsync(output.Replace("&", "_"));
|
||||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
@ -76,6 +78,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
||||||
{
|
{
|
||||||
foreach (var output in response)
|
foreach (var output in response)
|
||||||
{
|
{
|
||||||
|
if (output is null)
|
||||||
|
continue;
|
||||||
await ReplyAsync(output.Replace("&", "_"));
|
await ReplyAsync(output.Replace("&", "_"));
|
||||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
@ -109,6 +113,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
||||||
{
|
{
|
||||||
foreach (var output in response)
|
foreach (var output in response)
|
||||||
{
|
{
|
||||||
|
if (output is null)
|
||||||
|
continue;
|
||||||
await ReplyAsync(output.Replace("&", "_"));
|
await ReplyAsync(output.Replace("&", "_"));
|
||||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@
|
||||||
<PackageReference Include="Discord.Addons.Interactive" Version="2.0.0" />
|
<PackageReference Include="Discord.Addons.Interactive" Version="2.0.0" />
|
||||||
<PackageReference Include="Discord.Net" Version="2.4.0" />
|
<PackageReference Include="Discord.Net" Version="2.4.0" />
|
||||||
<PackageReference Include="Discord.Net.Providers.WS4Net" Version="2.4.0" />
|
<PackageReference Include="Discord.Net.Providers.WS4Net" Version="2.4.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.1.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.1.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.1.0" />
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
|
||||||
<PackageReference Include="NLog" Version="5.0.1" />
|
<PackageReference Include="NLog" Version="5.0.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue