Fixed dm help string
This commit is contained in:
@@ -14,7 +14,7 @@ namespace NadekoBot.Modules.CustomReactions
|
||||
{
|
||||
public static Dictionary<string, Func<IUserMessage, string>> placeholders = new Dictionary<string, Func<IUserMessage, string>>()
|
||||
{
|
||||
{"%mention%", (ctx) => { return $"<@!{NadekoBot.Client.GetCurrentUser().Id}>"; } },
|
||||
{"%mention%", (ctx) => { return $"<@{NadekoBot.Client.GetCurrentUser().Id}>"; } },
|
||||
{"%user%", (ctx) => { return ctx.Author.Mention; } },
|
||||
{"%target%", (ctx) => { return ctx.MentionedUsers.Shuffle().FirstOrDefault()?.Mention ?? "Nobody"; } },
|
||||
{"%rng%", (ctx) => { return new NadekoRandom().Next(0,10).ToString(); } }
|
||||
|
@@ -36,15 +36,6 @@ namespace NadekoBot.Modules.Help
|
||||
|
||||
public Help(ILocalization loc, CommandService cmds, ShardedDiscordClient client) : base(loc, cmds, client)
|
||||
{
|
||||
client.MessageReceived += async (msg) =>
|
||||
{
|
||||
if (msg.Author.IsBot)
|
||||
return;
|
||||
if (msg.Channel is IPrivateChannel)
|
||||
{
|
||||
await msg.Channel.SendMessageAsync(DMHelpString).ConfigureAwait(false);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
[NadekoCommand, Usage, Description, Aliases]
|
||||
|
Reference in New Issue
Block a user