fix #429
This commit is contained in:
parent
e58ce63088
commit
c5c9e98b51
@ -226,10 +226,10 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
|||||||
.Parameter("terms", ParameterType.Unparsed)
|
.Parameter("terms", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var terms = e.GetArg("terms")?.Trim().Replace(' ', '+');
|
var terms = e.GetArg("terms")?.Trim();
|
||||||
if (string.IsNullOrWhiteSpace(terms))
|
if (string.IsNullOrWhiteSpace(terms))
|
||||||
return;
|
return;
|
||||||
await e.Channel.SendMessage($"https://google.com/search?q={ HttpUtility.UrlEncode(terms) }")
|
await e.Channel.SendMessage($"https://google.com/search?q={ HttpUtility.UrlEncode(terms).Replace(' ', '+') }")
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user