Added startup confirmation to inform the user about selfbots violating discord tos
This commit is contained in:
parent
145a5eb0ca
commit
a85aa1f96c
|
@ -82,7 +82,6 @@ namespace DML.Application.Classes
|
|||
Logger.Trace("Created log folder.");
|
||||
}
|
||||
|
||||
|
||||
var logFile = Path.Combine(logFolder,
|
||||
SweetUtils.LegalizeFilename($"{DateTime.Now.ToString(CultureInfo.CurrentCulture.DateTimeFormat.SortableDateTimePattern)}.log.zip"));
|
||||
|
||||
|
@ -109,6 +108,18 @@ namespace DML.Application.Classes
|
|||
Settings.Store();
|
||||
}
|
||||
|
||||
if (Settings.ShowStartUpHints)
|
||||
{
|
||||
if (MessageBox.Show(splash, "This tool is considered as a selfbot which may violate the Discord TOS. By using this tool you take the risk to get your account banned. Although this never happened yet (as far as I know) you have to confirm to this.\n\r\n\rDo you wish to continue?", "HOLD UP!!", MessageBoxButtons.YesNo) != DialogResult.Yes)
|
||||
{
|
||||
splash.Close();
|
||||
return;
|
||||
}
|
||||
|
||||
Settings.ShowStartUpHints = false;
|
||||
Settings.Store();
|
||||
}
|
||||
|
||||
Logger.Debug("Loading jobs collection out of database...");
|
||||
Scheduler.JobList = Job.RestoreJobs().ToList();
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ namespace DML.Application.Classes
|
|||
public string FileNameScheme { get; set; } = @"%guild%\%channel%\%id%";
|
||||
public bool SkipExistingFiles { get; set; } = true;
|
||||
public int ThreadLimit { get; set; } = 50;
|
||||
public bool ShowStartUpHints { get; set; } = true;
|
||||
|
||||
public void Store()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue