Allow single quotes in command arguments
This commit is contained in:
parent
d829630a35
commit
c6905f4ca1
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Data.Common;
|
using System.Data.Common;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
@ -57,7 +58,19 @@ namespace PluralKit.Bot
|
|||||||
.AddSingleton<IDiscordClient, DiscordSocketClient>()
|
.AddSingleton<IDiscordClient, DiscordSocketClient>()
|
||||||
.AddSingleton<Bot>()
|
.AddSingleton<Bot>()
|
||||||
|
|
||||||
.AddTransient<CommandService>()
|
.AddTransient<CommandService>(_ => new CommandService(new CommandServiceConfig
|
||||||
|
{
|
||||||
|
CaseSensitiveCommands = false,
|
||||||
|
QuotationMarkAliasMap = new Dictionary<char, char>
|
||||||
|
{
|
||||||
|
{'"', '"'},
|
||||||
|
{'\'', '\''},
|
||||||
|
{'‘', '’'},
|
||||||
|
{'“', '”'},
|
||||||
|
{'„', '‟'},
|
||||||
|
},
|
||||||
|
DefaultRunMode = RunMode.Async
|
||||||
|
}))
|
||||||
.AddTransient<EmbedService>()
|
.AddTransient<EmbedService>()
|
||||||
.AddTransient<ProxyService>()
|
.AddTransient<ProxyService>()
|
||||||
.AddTransient<LogChannelService>()
|
.AddTransient<LogChannelService>()
|
||||||
|
Loading…
Reference in New Issue
Block a user