Remove all in-command usages of GetDict for translations
This commit is contained in:
parent
0f0c0684c6
commit
67add36e51
3 changed files with 9 additions and 9 deletions
|
@ -24,10 +24,10 @@ namespace Geekbot.net.Commands.Utils
|
|||
{
|
||||
try
|
||||
{
|
||||
var transDict = await _translation.GetDict(Context);
|
||||
var transContext = await _translation.GetGuildContext(Context);
|
||||
var choicesArray = choices.Split(';');
|
||||
var choice = new Random().Next(choicesArray.Length);
|
||||
await ReplyAsync(string.Format(transDict["Choice"], choicesArray[choice]));
|
||||
await ReplyAsync(transContext.GetString("Choice", choicesArray[choice]));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue