Added actual responses to .lcr all, not count
This commit is contained in:
parent
d4985f26dd
commit
5583780fcb
@ -159,7 +159,7 @@ namespace NadekoBot.Modules.CustomReactions
|
|||||||
{
|
{
|
||||||
var txtStream = await customReactions.GroupBy(cr => cr.Trigger)
|
var txtStream = await customReactions.GroupBy(cr => cr.Trigger)
|
||||||
.OrderBy(cr => cr.Key)
|
.OrderBy(cr => cr.Key)
|
||||||
.Select(cr => new { Trigger = cr.Key, Responses = cr.Count() })
|
.Select(cr => new { Trigger = cr.Key, Responses = cr.Select(y=>y.Response).ToList() })
|
||||||
.ToJson()
|
.ToJson()
|
||||||
.ToStream()
|
.ToStream()
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
@ -173,7 +173,7 @@ namespace NadekoBot.Modules.CustomReactions
|
|||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
public async Task ListCustReactG(IUserMessage imsg, int page = 1)
|
public async Task ListCustReactG(IUserMessage imsg, int page = 1)
|
||||||
{
|
{
|
||||||
var channel = (ITextChannel)imsg.Channel;
|
var channel = imsg.Channel as ITextChannel;
|
||||||
if (page < 1 || page > 10000)
|
if (page < 1 || page > 10000)
|
||||||
return;
|
return;
|
||||||
ConcurrentHashSet<CustomReaction> customReactions;
|
ConcurrentHashSet<CustomReaction> customReactions;
|
||||||
|
Loading…
Reference in New Issue
Block a user