fix: fixed .iam

fix: fixed .sclr not being respected on many different commands
change: .rps now also has the amount bet
This commit is contained in:
Kwoth
2024-11-27 02:35:58 +00:00
parent 231451f978
commit 62a16f3faf
9 changed files with 39 additions and 24 deletions

View File

@@ -14,7 +14,7 @@ public partial class Utility
}
private string GetCommandString(NadekoCommandCallModel res)
=> $"{_bcs.Data.Prefix}{res.Name} {res.Arguments.Select((x, i) => GetParamString(x, i + 1 == res.Arguments.Count)).Join(" ")}";
=> $"{prefix}{res.Name} {res.Arguments.Select((x, i) => GetParamString(x, i + 1 == res.Arguments.Count)).Join(" ")}";
private static string GetParamString(string val, bool isLast)
=> isLast ? val : "\"" + val + "\"";