1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-02 20:19:55 +03:00

Fixing bugs and other problems

This commit is contained in:
Octol1ttle 2023-01-17 22:34:42 +05:00
parent 905cf5619c
commit f1bd54d6f6
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
16 changed files with 255 additions and 144 deletions

View file

@ -35,6 +35,8 @@ public sealed class BanCommand : ICommand {
= duration.TotalSeconds < 1 ? DateTimeOffset.MaxValue : DateTimeOffset.Now.Add(duration);
memberData.Roles.Clear();
cmd.ConfigWriteScheduled = true;
var feedback = string.Format(Messages.FeedbackUserBanned, $"<@{toBan.Item1.ToString()}>",
Utils.GetHumanizedTimeOffset(duration), Utils.Wrap(reason));
cmd.Reply(feedback, ReplyEmojis.Banned);