Allow single quotes in command arguments

This commit is contained in:
Ske 2019-07-11 22:34:38 +02:00
parent d829630a35
commit c6905f4ca1

View File

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Diagnostics;
@ -57,7 +58,19 @@ namespace PluralKit.Bot
.AddSingleton<IDiscordClient, DiscordSocketClient>()
.AddSingleton<Bot>()
.AddTransient<CommandService>()
.AddTransient<CommandService>(_ => new CommandService(new CommandServiceConfig
{
CaseSensitiveCommands = false,
QuotationMarkAliasMap = new Dictionary<char, char>
{
{'"', '"'},
{'\'', '\''},
{'', ''},
{'“', '”'},
{'„', '‟'},
},
DefaultRunMode = RunMode.Async
}))
.AddTransient<EmbedService>()
.AddTransient<ProxyService>()
.AddTransient<LogChannelService>()