Merge branch 'master' of ssh://git.boerlage.me:31022/open/Geekbot.net
This commit is contained in:
commit
d750513bc8
3 changed files with 6 additions and 4 deletions
|
@ -42,6 +42,8 @@ namespace Geekbot.net.Lib
|
|||
{
|
||||
var errorString = errorMessage == "def" ? _translation.GetString(Context.Guild.Id, "errorHandler", "SomethingWentWrong") : errorMessage;
|
||||
var errorObj = SimpleConextConverter.ConvertContext(Context);
|
||||
if (e.Message.Contains("50007")) return;
|
||||
if (e.Message.Contains("50013")) return;
|
||||
_logger.Error("Geekbot", "An error ocured", e, errorObj);
|
||||
if (!string.IsNullOrEmpty(errorMessage))
|
||||
{
|
||||
|
@ -49,7 +51,7 @@ namespace Geekbot.net.Lib
|
|||
}
|
||||
|
||||
if (_raven == null) return;
|
||||
|
||||
|
||||
var sentryEvent = new SentryEvent(e)
|
||||
{
|
||||
Tags =
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace Tests.Lib
|
|||
|
||||
|
||||
[Theory, MemberData(nameof(NumberToEmojiTestData))]
|
||||
public async Task NumberToEmoji(int number, string expectedResult)
|
||||
public void NumberToEmoji(int number, string expectedResult)
|
||||
{
|
||||
var emojiConverter = new EmojiConverter();
|
||||
var result = emojiConverter.numberToEmoji(number);
|
||||
|
@ -65,7 +65,7 @@ namespace Tests.Lib
|
|||
|
||||
|
||||
[Theory, MemberData(nameof(textToEmojiTestData))]
|
||||
public async Task TextToEmoji(string text, string expectedResult)
|
||||
public void TextToEmoji(string text, string expectedResult)
|
||||
{
|
||||
var emojiConverter = new EmojiConverter();
|
||||
var result = emojiConverter.textToEmoji(text);
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace Tests.Lib
|
|||
|
||||
|
||||
[Theory, MemberData(nameof(LevelCalcTestData))]
|
||||
public async Task GetLevel(int messages, int expectedResult)
|
||||
public void GetLevel(int messages, int expectedResult)
|
||||
{
|
||||
var levelCalc = new LevelCalc();
|
||||
var result = levelCalc.GetLevel(messages);
|
||||
|
|
Loading…
Reference in a new issue