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

time-out failsafes and new warnings

rewrote setting values in SettingsCommand.cs
fixed a bug with message edited notification on mobile
fixed an exploit with WrapInline where you could escape the code block by simply using `
moved a few things in MuteCommand.cs
cleaned up code
updated library to 3.3.2
This commit is contained in:
l1ttleO 2022-02-21 22:08:55 +05:00
parent e41a459f6f
commit 868b6bcaa7
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
12 changed files with 220 additions and 345 deletions

View file

@ -60,15 +60,6 @@ namespace Boyfriend {
}
}
/// <summary>
/// Looks up a localized string similar to Arguments not present! {0}.
/// </summary>
internal static string ArgumentNotPresent {
get {
return ResourceManager.GetString("ArgumentNotPresent", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Too many mentions in 1 message.
/// </summary>
@ -78,15 +69,6 @@ namespace Boyfriend {
}
}
/// <summary>
/// Looks up a localized string similar to Invalid argument count! {0}.
/// </summary>
internal static string BadArgumentCount {
get {
return ResourceManager.GetString("BadArgumentCount", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to :white_check_mark: Successfully banned {0} for {1}.
/// </summary>
@ -141,6 +123,15 @@ namespace Boyfriend {
}
}
/// <summary>
/// Looks up a localized string similar to I cannot use time-outs on other bots! Try to set a mute role in settings.
/// </summary>
internal static string CannotTimeOutBot {
get {
return ResourceManager.GetString("CannotTimeOutBot", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Not specified.
/// </summary>
@ -177,15 +168,6 @@ namespace Boyfriend {
}
}
/// <summary>
/// Looks up a localized string similar to Command execution was unsuccessful: {0}.
/// </summary>
internal static string CommandExecutionUnsuccessful {
get {
return ResourceManager.GetString("CommandExecutionUnsuccessful", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Command help:{0}.
/// </summary>
@ -213,15 +195,6 @@ namespace Boyfriend {
}
}
/// <summary>
/// Looks up a localized string similar to Command parsing failed: {0}.
/// </summary>
internal static string CommandParseFailed {
get {
return ResourceManager.GetString("CommandParseFailed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Couldn&apos;t find guild by message!.
/// </summary>
@ -348,6 +321,24 @@ namespace Boyfriend {
}
}
/// <summary>
/// Looks up a localized string similar to I couldn&apos;t parse the specified duration! One of the components could be outside it&apos;s valid range (e.g. `24h` or `60m`).
/// </summary>
internal static string DurationParseFailed {
get {
return ResourceManager.GetString("DurationParseFailed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to I cannot mute someone forever using timeouts! Either specify a proper duration, or set a mute role in settings.
/// </summary>
internal static string DurationRequiredForTimeOuts {
get {
return ResourceManager.GetString("DurationRequiredForTimeOuts", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Members are in different guilds!.
/// </summary>
@ -403,38 +394,29 @@ namespace Boyfriend {
}
/// <summary>
/// Looks up a localized string similar to Invalid admin log channel for guild.
/// Looks up a localized string similar to This channel does not exist!.
/// </summary>
internal static string InvalidAdminLogChannel {
internal static string InvalidChannel {
get {
return ResourceManager.GetString("InvalidAdminLogChannel", resourceCulture);
return ResourceManager.GetString("InvalidChannel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Invalid argument! &apos;true&apos; or &apos;false&apos; required!.
/// Looks up a localized string similar to This role does not exist!.
/// </summary>
internal static string InvalidBoolean {
internal static string InvalidRole {
get {
return ResourceManager.GetString("InvalidBoolean", resourceCulture);
return ResourceManager.GetString("InvalidRole", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Invalid channel specified!.
/// Looks up a localized string similar to Invalid setting value specified!.
/// </summary>
internal static string InvalidChannelSpecified {
internal static string InvalidSettingValue {
get {
return ResourceManager.GetString("InvalidChannelSpecified", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Invalid role specified!.
/// </summary>
internal static string InvalidRoleSpecified {
get {
return ResourceManager.GetString("InvalidRoleSpecified", resourceCulture);
return ResourceManager.GetString("InvalidSettingValue", resourceCulture);
}
}
@ -528,24 +510,6 @@ namespace Boyfriend {
}
}
/// <summary>
/// Looks up a localized string similar to Someone removed the mute role manually!.
/// </summary>
internal static string MuteRoleManuallyRemoved {
get {
return ResourceManager.GetString("MuteRoleManuallyRemoved", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You must set up a mute role in settings!.
/// </summary>
internal static string MuteRoleRequired {
get {
return ResourceManager.GetString("MuteRoleRequired", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to No.
/// </summary>
@ -591,15 +555,6 @@ namespace Boyfriend {
}
}
/// <summary>
/// Looks up a localized string similar to Repeated arguments detected! {0}.
/// </summary>
internal static string RepeatedArgumentsDetected {
get {
return ResourceManager.GetString("RepeatedArgumentsDetected", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Not specified.
/// </summary>
@ -609,6 +564,15 @@ namespace Boyfriend {
}
}
/// <summary>
/// Looks up a localized string similar to I couldn&apos;t remove role {0} because of an error! {1}.
/// </summary>
internal static string RoleRemovalFailed {
get {
return ResourceManager.GetString("RoleRemovalFailed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Someone removed the mute role manually! I added back all roles that I removed during the mute.
/// </summary>
@ -655,7 +619,7 @@ namespace Boyfriend {
}
/// <summary>
/// Looks up a localized string similar to Message edited from {0} in channel {1}, but I forgot what was there before the edit.
/// Looks up a localized string similar to Message edited from {0} in channel {1}, but I forgot what was there before the edit: .
/// </summary>
internal static string UncachedMessageEdited {
get {
@ -663,15 +627,6 @@ namespace Boyfriend {
}
}
/// <summary>
/// Looks up a localized string similar to Unknown command! {0}.
/// </summary>
internal static string UnknownCommand {
get {
return ResourceManager.GetString("UnknownCommand", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to :white_check_mark: Successfully unmuted {0} for {1}.
/// </summary>