mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
- Initial work on Dockerfile
- Updated README.md with more information - Added some todos
This commit is contained in:
@@ -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);
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user