mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 09:10:14 +00:00
Allow single quotes in command arguments
This commit is contained in:
parent
d829630a35
commit
c6905f4ca1
1 changed files with 14 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue