Refaction all files into component based folders

This commit is contained in:
runebaas 2018-05-03 00:56:06 +02:00
parent 55e152f4aa
commit e3adf55742
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
102 changed files with 816 additions and 709 deletions

View file

@ -1,5 +1,6 @@
using System;
using System.IO;
using Geekbot.net.Lib.Logger;
namespace Geekbot.net.Lib.Media
{
@ -16,7 +17,7 @@ namespace Geekbot.net.Lib.Media
var rawFortunes = File.ReadAllText(path);
_fortuneArray = rawFortunes.Split("%");
_totalFortunes = _fortuneArray.Length;
logger.Debug("Geekbot", "Loaded {totalFortunes} Fortunes");
logger.Trace("Geekbot", $"Loaded {_totalFortunes} Fortunes");
}
else
{
@ -29,9 +30,4 @@ namespace Geekbot.net.Lib.Media
return _fortuneArray[new Random().Next(0, _totalFortunes)];
}
}
public interface IFortunesProvider
{
string GetRandomFortune();
}
}