fixed -h for .send
This commit is contained in:
parent
31c4e315c6
commit
1437f60d75
@ -5,6 +5,7 @@ using NadekoBot.Modules.Permissions.Classes;
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NadekoBot.Classes.Help.Commands
|
namespace NadekoBot.Classes.Help.Commands
|
||||||
@ -30,7 +31,7 @@ namespace NadekoBot.Classes.Help.Commands
|
|||||||
if (alias != null)
|
if (alias != null)
|
||||||
str = $" / `{ com.Aliases.FirstOrDefault()}`";
|
str = $" / `{ com.Aliases.FirstOrDefault()}`";
|
||||||
if (com != null)
|
if (com != null)
|
||||||
await e.Channel.SendMessage($@"**__Help for:__ `{com.Text}`**" + str + $"\n**Desc:** {com.Description.Replace("|", "\n**Usage:**")}").ConfigureAwait(false);
|
await e.Channel.SendMessage($@"**__Help for:__ `{com.Text}`**" + str + $"\n**Desc:** {new Regex(@"\|").Replace(com.Description, "\n**Usage:**",1)}").ConfigureAwait(false);
|
||||||
}).ConfigureAwait(false);
|
}).ConfigureAwait(false);
|
||||||
};
|
};
|
||||||
public static string HelpString {
|
public static string HelpString {
|
||||||
|
Loading…
Reference in New Issue
Block a user