- Initial work on Dockerfile

- Updated README.md with more information
- Added some todos
This commit is contained in:
Kwoth
2021-07-18 09:16:42 +02:00
parent 971b5078b7
commit b84f40def6
7 changed files with 51 additions and 12 deletions

View File

@@ -46,10 +46,12 @@ namespace NadekoBot.Modules.Gambling.Services
}
}
// todo future use votes api directly?
private async Task BotlistUpvoteLoop()
{
if (string.IsNullOrWhiteSpace(_creds.VotesUrl))
return;
while (true)
{
await Task.Delay(TimeSpan.FromHours(1)).ConfigureAwait(false);

View File

@@ -11,7 +11,7 @@ if (args.Length > 0)
{
if (!int.TryParse(args[0], out shardId))
{
Console.Error.WriteLine("Invalid first argument (shard id)");
Console.Error.WriteLine("Invalid first argument (shard id): {0}", args[0]);
return;
}
@@ -19,7 +19,7 @@ if (args.Length > 0)
{
if (!int.TryParse(args[1], out var shardCount))
{
Console.Error.WriteLine("Invalid second argument (total shards)");
Console.Error.WriteLine("Invalid second argument (total shards): {0}", args[1]);
return;
}

View File

@@ -11,6 +11,9 @@ using NadekoBot.Modules.Administration;
namespace NadekoBot.Services
{
// todo future use guild locale more in the code (from guild settings) (for dates, currency, etc?)
// todo future maybe Write a sourcegen for response strings
// and use const/static fields (maybe even typed to enforce correct number of arguments)
public class Localization : ILocalization, INService
{
private readonly BotConfigService _bss;

View File

@@ -32,6 +32,7 @@ namespace NadekoBot.Extensions
return Regex.Replace(input, "<.*?>", String.Empty);
}
// todo future maybe use humanizer lib for this kind of work
public static string TrimTo(this string str, int maxLength, bool hideDots = false)
{
if (maxLength < 0)