Repository navigation
Conversation
- Enforce one listing and accepted-only creation cooldowns - Add Guidelines setup, owner controls and moderator recovery - Persist recoverable workflows and add regression coverage
…ging and output paths docs: add local development section to README for .NET 8 setup and usage instructions
- Cache observations and defer Discord throttles - Add responsive status and a recovering feed overview - Preserve queued evidence before automatic actions
- Retain bounded starter evidence and moderator review notices. - Keep the staff overview fixed and quiet routine processing.
🚀 Deploy this PRCode-only changes
Manifest changes (e.g. new services in
|
| foreach (var word in words) { if (line.Length + word.Length > 16 && line.Length > 0) { lines.Add(line); line = ""; } line += (line.Length > 0 ? " " : "") + word; } | ||
| lines.Add(line); | ||
| d.FillColor(MagickColors.White).FontPointSize(40); | ||
| for (var n = 0; n < Math.Min(3, lines.Count); n++) d.Text(x + 16, y + 92 + n * 40, lines[n].Length > 17 ? lines[n][..16] + "…" : lines[n]); |
| { | ||
| if (!ready() || State?.Listings.GetValueOrDefault(thread) is not { } post) return; | ||
| await _workflow!.ProcessSafelyAsync(post, ct); | ||
| foreach (var waiting in State.Listings.Values.Where(p => p.Id != post.Id && p.OwnerId == post.OwnerId && |
| } | ||
|
|
||
| public Listing? Owner(string guild, string thread, string owner) => | ||
| ready() && State?.GuildId == guild && State.Listings.TryGetValue(thread, out var post) && post.OwnerId == owner ? post : null; |
| return safe.Length == 0 ? null : safe; | ||
| } | ||
| public static string? SafeAvatarUrl(string? value) => Uri.TryCreate(value, UriKind.Absolute, out var uri) && uri.Scheme == "https" && | ||
| uri.Host is "cdn.discordapp.com" or "media.discordapp.net" && value.Length <= 500 ? value : null; |
| else if (endpoint == "channels/11/threads" && method == "POST") | ||
| { | ||
| CreatePayload = patch!; StarterContent = (string)patch!["message"]!["content"]!; | ||
| Thread["owner_id"] = "999"; Thread["applied_tags"] = patch["applied_tags"]!.DeepClone(); body = Thread.ToString(); |
| { | ||
| using var rig = new RecruitmentRig(); await rig.Start(); var post = await rig.Post(); | ||
| var received = post.Deadline!.Value.AddSeconds(-1); | ||
| rig.Clock.Now = post.Deadline.Value.AddMinutes(1); |
| await entered.Task; | ||
| rig.Clock.Now = received; | ||
| var submission = service.RunAsync((engine, ct) => engine.AcknowledgeAsync("1", "100", "200", code, ct, received), "100"); | ||
| rig.Clock.Now = post.Deadline.Value.AddMinutes(1); |
| private bool _disposed; | ||
| public bool Change(TimeSpan dueTime, TimeSpan period) | ||
| { | ||
| lock (this) |
| } | ||
| public void Fire() | ||
| { | ||
| lock (this) |
| } | ||
| callback(state); | ||
| } | ||
| public void Dispose() { lock (this) { _disposed = true; _due = null; } } |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This branch has a whole heap of nonsense. I was trying to get a recruitment babysitter functional without being overcomplicated, which I don't think I can say was the result.
I've made this as a Draft PR as I will probably give it another crack at some point, but some main areas need improvements, and I don't like how complicated the service became. Probably trying to do too many things, and a simpler solution would be more appropriate.
Note
This PR summary was generated with Copilot and reviewed/edited by @SimplyJpk.
It appears accurate but may not cover every change.
This pull request introduces several improvements to the development workflow and adds comprehensive unit tests for recruitment-related features. The main changes include standardizing editor and build configurations, refining the .NET build and run process for the DiscordBot project, and adding new test coverage for recruitment content analysis.
Development workflow and configuration improvements:
.editorconfigto enforce consistent line endings, whitespace trimming, UTF-8 encoding, and indentation across all files, with specific rules for C# and JSON files..vscode/tasks.jsonand.vscode/launch.jsonto streamline build and run tasks: builds now output to a dedicatedbin/vscodedirectory, and new tasks are added for running and watching the project with improved argument handling and working directory configuration. [1] [2] [3].NET project configuration:
<RollForward>Major</RollForward>toDiscordBot.Tests.csprojto ensure tests run on compatible newer .NET runtimes if available.Recruitment feature test coverage:
RecruitmentContentTeststo verify correct parsing and summarization of payment terms, portfolio links, media attachments, behavioral cues, and contact links in recruitment posts.ListingAnalysisTeststo test domain name matching, preservation of summary and evidence with empty registries, and correct literal display handling for Discord display text.