Skip to content

Commit

Permalink
Close #5
Browse files Browse the repository at this point in the history
  • Loading branch information
LaineZ committed Oct 16, 2024
1 parent 563a3ca commit f40e8b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions fs24bot3/Commands/GenericCommandsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public async Task Remind(string time = "1m", [Remainder] string message = "")

if (!timeSegments.Any())
{
Context.SendErrorMessage(Context.Channel,
await Context.SendErrorMessage(Context.Channel,
$"Неверный формат времени или неверные единицы измерения времени");
return;
}
Expand Down Expand Up @@ -167,7 +167,7 @@ public async Task Remind(string time = "1m", [Remainder] string message = "")
totalSecs += value;
break;
default:
Context.SendErrorMessage(Context.Channel,
await Context.SendErrorMessage(Context.Channel,
$"Неизвестная единица измерения времени: {segment.Value[^1]}");
return;
}
Expand Down Expand Up @@ -681,4 +681,4 @@ public async Task ColorTransform(Color color, CommandToggles.ColorFormats output
break;
}
}
}
}
4 changes: 2 additions & 2 deletions fs24bot3/Models/MessageGeneric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public MessageGeneric(in ParsedIRCMessage message, in SQLiteConnection connectio
// trim bridged user nickname like
// <cheburator> //bpm140//: @ms привет
var msg = Body.Split(":");
Body = msg.Last().TrimStart(' ');
Body = string.Join(":", msg.Skip(1)).TrimStart();
Sender = new Core.User("@[" + MessageHelper.StripIRC(msg.First()) + "]", connection);
Kind = MessageKind.MessageFromBridge;
Log.Verbose("Message from the bridge: {0} from {1}", Body, Sender);
Expand All @@ -53,4 +53,4 @@ public MessageGeneric(string body, string target, Core.User sender, MessageKind
Sender = sender;
Kind = messageKind;
}
}
}

0 comments on commit f40e8b8

Please sign in to comment.