>heal and >plant are now correctly using currency name/sign. closes #202

This commit is contained in:
Master Kwoth
2016-04-10 02:20:35 +02:00
parent d8e0883b33
commit cf5e89d6a2
2 changed files with 6 additions and 5 deletions

View File

@ -252,7 +252,8 @@ namespace NadekoBot.Modules.Pokemon
await e.Channel.SendMessage($"{e.User.Name} revived {usr.Name} with one {NadekoBot.Config.CurrencySign}");
return;
}
await e.Channel.SendMessage($"{e.User.Name} healed {usr.Name} for {targetStats.MaxHp - HP} HP with a 🌸");
var vowelFirst = new[] { 'a', 'e', 'i', 'o', 'u' }.Contains(NadekoBot.Config.CurrencyName[0]);
await e.Channel.SendMessage($"{e.User.Name} healed {usr.Name} for {targetStats.MaxHp - HP} HP with {(vowelFirst ? "an" : "a")} {NadekoBot.Config.CurrencySign}");
return;
}
else