Use gender neutral language (#3057)

This commit is contained in:
Leet 2023-10-31 17:21:34 +00:00 committed by GitHub
parent 09804a5032
commit 17796c3466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View file

@ -133,7 +133,7 @@ internal sealed class ExamplePlugin : IASF, IBot, IBotCommand2, IBotConnection,
// This method, apart from being called during bot modules initialization, allows you to read custom bot config properties that are not recognized by ASF
// Thanks to that, you can extend default bot config with your own stuff, then parse it here in order to customize your plugin during runtime
// Keep in mind that, as noted in the interface, additionalConfigProperties can be null if no custom, unrecognized properties are found by ASF, you should handle that case appropriately
// Also keep in mind that this function can be called multiple times, e.g. when user edits his bot configs during runtime
// Also keep in mind that this function can be called multiple times, e.g. when user edits their bot configs during runtime
// Take a look at OnASFInit() for example parsing code
public async Task OnBotInitModules(Bot bot, IReadOnlyDictionary<string, JToken>? additionalConfigProperties = null) {
// For example, we'll ensure that every bot starts paused regardless of Paused property, in order to do this, we'll just call Pause here in InitModules()

View file

@ -298,7 +298,7 @@ internal static class OS {
}
// This function calls unmanaged API in order to tell Windows OS that it should not enter sleep state while the program is running
// If user wishes to enter sleep mode, then he should use ShutdownOnFarmingFinished or manage ASF process with third-party tool or script
// If user wishes to enter sleep mode, then they should use ShutdownOnFarmingFinished or manage the ASF process with third-party tool or script
// See https://docs.microsoft.com/windows/win32/api/winbase/nf-winbase-setthreadexecutionstate for more details
NativeMethods.EExecutionState result = NativeMethods.SetThreadExecutionState(NativeMethods.EExecutionState.Awake);

View file

@ -384,8 +384,8 @@ internal sealed class Startup {
goto default;
default:
// Instruct the caller to always ask us first about every file it requests
// Contrary to the name, this doesn't prevent client from caching, but rather informs it that it must verify with us first that his cache is still up-to-date
// This is used to handle ASF and user updates to WWW root, we don't want from the client to ever use outdated scripts
// Contrary to the name, this doesn't prevent client from caching, but rather informs it that it must verify with us first that their cache is still up-to-date
// This is used to handle ASF and user updates to WWW root, we don't want the client to ever use outdated scripts
cacheControl.NoCache = true;
// All static files are public by definition, we don't have any authorization here

View file

@ -2176,7 +2176,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
case EResult.AccountLoginDeniedThrottle:
case EResult.DuplicateRequest: // This will happen if user reacts to popup and tries to use the code afterwards, we have the code saved in ASF, we just need to try again
case EResult.Expired: // Refresh token expired
case EResult.FileNotFound: // User denied approval despite telling us that he accepted it, just try again
case EResult.FileNotFound: // User denied approval despite telling us that they accepted it, just try again
case EResult.InvalidPassword:
case EResult.NoConnection:
case EResult.PasswordRequiredToKickSession: // Not sure about this one, it seems to be just generic "try again"? #694

View file

@ -59,7 +59,7 @@ internal sealed class BotCredentialsProvider : IAuthenticator {
return false;
}
// Ask the user what he wants
// Ask the user what they want
string input = await ProvideInput(ASF.EUserInputType.DeviceConfirmation, false).ConfigureAwait(false);
return input.Equals("Y", StringComparison.OrdinalIgnoreCase);

View file

@ -205,7 +205,7 @@ public sealed class Actions : IAsyncDisposable, IDisposable {
return (true, handledConfirmations.Values, string.Format(CultureInfo.CurrentCulture, Strings.BotHandledConfirmations, handledConfirmations.Count));
}
// If he did, check if we've already found everything we were supposed to
// If they did, check if we've already found everything we were supposed to
if ((handledConfirmations.Count >= acceptedCreatorIDs.Count) && acceptedCreatorIDs.All(handledConfirmations.ContainsKey)) {
return (true, handledConfirmations.Values, string.Format(CultureInfo.CurrentCulture, Strings.BotHandledConfirmations, handledConfirmations.Count));
}

View file

@ -831,7 +831,7 @@ public sealed class WebBrowser : IDisposable {
break;
}
// Compress the request if caller specified it, so he knows that the server supports it, and the content is not compressed yet
// Compress the request if caller specified it, so they know that the server supports it, and the content is not compressed yet
if (requestOptions.HasFlag(ERequestOptions.CompressRequest) && (requestMessage.Content.Headers.ContentEncoding.Count == 0)) {
HttpContent originalContent = requestMessage.Content;