mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
resolving issues
This commit is contained in:
parent
4d1767bd61
commit
9972b5f2a0
2 changed files with 2 additions and 3 deletions
|
@ -66,8 +66,7 @@ public class AboutCommandGroup : CommandGroup {
|
||||||
var embed = new EmbedBuilder().WithSmallTitle(Messages.AboutBot, currentUser)
|
var embed = new EmbedBuilder().WithSmallTitle(Messages.AboutBot, currentUser)
|
||||||
.WithDescription(builder.ToString())
|
.WithDescription(builder.ToString())
|
||||||
.WithColour(ColorsList.Cyan)
|
.WithColour(ColorsList.Cyan)
|
||||||
.WithImageUrl(
|
.WithImageUrl("https://cdn.upload.systems/uploads/JFAaX5vr.png")
|
||||||
"https://media.discordapp.net/attachments/837385840946053181/1125009665592393738/boyfriend.png")
|
|
||||||
.Build();
|
.Build();
|
||||||
if (!embed.IsDefined(out var built)) return Result.FromError(embed);
|
if (!embed.IsDefined(out var built)) return Result.FromError(embed);
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class MessageCreateResponder : IResponder<IMessageCreate> {
|
||||||
|
|
||||||
public Task<Result> RespondAsync(IMessageCreate gatewayEvent, CancellationToken ct = default) {
|
public Task<Result> RespondAsync(IMessageCreate gatewayEvent, CancellationToken ct = default) {
|
||||||
_ = _channelApi.CreateMessageAsync(
|
_ = _channelApi.CreateMessageAsync(
|
||||||
gatewayEvent.ChannelID, ct: ct, content: gatewayEvent.Content.ToLower() switch {
|
gatewayEvent.ChannelID, ct: ct, content: gatewayEvent.Content.ToLowerInvariant() switch {
|
||||||
"whoami" => "`nobody`",
|
"whoami" => "`nobody`",
|
||||||
"сука !!" => "`root`",
|
"сука !!" => "`root`",
|
||||||
"воооо" => "`removing /...`",
|
"воооо" => "`removing /...`",
|
||||||
|
|
Loading…
Add table
Reference in a new issue