Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Feb 22, 2023
2 parents 2a81d3b + 2e03247 commit 2824f63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Marco/Marco.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<VersionPrefix>1.3.3</VersionPrefix>
<VersionPrefix>1.3.4</VersionPrefix>
</PropertyGroup>

<PropertyGroup Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' == ''">
Expand Down
7 changes: 4 additions & 3 deletions Marco/Services/MacroListeningService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,16 @@ private async Task OnMessageCreated(DiscordClient sender, MessageCreateEventArgs

_cooldownService.UpdateCooldown(channel, macro);

int argIndex = spaceIndex < 0 ? prefix.Length + command.Length : spaceIndex;
// TODO revisit this feature
/*int argIndex = spaceIndex < 0 ? prefix.Length + command.Length : spaceIndex;
string response = Smart.Format(macro.Response, new
{
args = content[argIndex..].Split(),
channel,
guild,
user = (DiscordMember) e.Message.Author
});
await channel.SendMessageAsync(response).ConfigureAwait(false);
});*/
await channel.SendMessageAsync(macro.Response).ConfigureAwait(false);
}
}
else
Expand Down

0 comments on commit 2824f63

Please sign in to comment.