diff --git a/SMSModLogOutputAnalyzer/CommandModule.cs b/SMSModLogOutputAnalyzer/CommandModule.cs index 01b68d4..a6d798a 100644 --- a/SMSModLogOutputAnalyzer/CommandModule.cs +++ b/SMSModLogOutputAnalyzer/CommandModule.cs @@ -35,6 +35,39 @@ namespace SMSModLogOutputAnalyzer { Console.WriteLine("Building module"); } + [MessageCommand("Ask for Log file")] + public async Task AskForLog(IMessage message) + { + string title = "Please submit Log File"; + string descr = "In order to assist you further, we are going to need your `BepInEx/LogOutput.log` file."; + if(message.Channel.Id == 1220431757266915400) + { + title = "Merci d'envoyer le fichier journal"; + descr = "Afin de t'aider davantage, nous allons avoir besoin de ton fichier `BepInEx/LogOutput.log`."; + } + if(message.Channel.Id == 1220476339883216977) + { + title = "Bitte schick uns deine Log-Datei."; + descr = "Um dir weiterhelfen zu können, benötigen wir deine `BepInEx/LogOutput.log` Datei."; + } + if (message.Channel.Id == 1220488093124005909) + { + title = "Envía el archivo de registro"; + descr = "Para poder ayudarte mejor, vamos a necesitar tu archivo `BepInEx/LogOutput.log`."; + } + if (message.Channel.Id == 1221180784598188082) + { + title = "Prześlij plik dziennika"; + descr = "Aby pomóc Ci dalej, będziemy potrzebować Twojego pliku `BepInEx/LogOutput.log`."; + } + if (message.Channel.Id == 1225150931306549330) + { + title = "Por favor, envia o ficheiro de registo"; + descr = "Para te podermos ajudar mais, vamos precisar do teu ficheiro `BepInEx/LogOutput.log`."; + } + var stream = new MemoryStream(Properties.Resources.LogOutput); + await RespondWithFileAsync(new FileAttachment(stream, "LogOutput.jpg"), "<@" + message.Author.Id + ">", embed: new EmbedBuilder().WithTitle(title).WithDescription(descr).WithImageUrl("attachment://LogOutput.jpg").Build()); + } [MessageCommand("Analyze Log")] public async Task Analyze(IMessage message) { diff --git a/SMSModLogOutputAnalyzer/Properties/Resources.Designer.cs b/SMSModLogOutputAnalyzer/Properties/Resources.Designer.cs index a4489ad..85cc779 100644 --- a/SMSModLogOutputAnalyzer/Properties/Resources.Designer.cs +++ b/SMSModLogOutputAnalyzer/Properties/Resources.Designer.cs @@ -76,5 +76,15 @@ namespace SMSModLogOutputAnalyzer.Properties { return ResourceManager.GetString("Flowchart", resourceCulture); } } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Byte[]. + /// + internal static byte[] LogOutput { + get { + object obj = ResourceManager.GetObject("LogOutput", resourceCulture); + return ((byte[])(obj)); + } + } } } diff --git a/SMSModLogOutputAnalyzer/Properties/Resources.resx b/SMSModLogOutputAnalyzer/Properties/Resources.resx index e09ad23..236d1b8 100644 --- a/SMSModLogOutputAnalyzer/Properties/Resources.resx +++ b/SMSModLogOutputAnalyzer/Properties/Resources.resx @@ -121,4 +121,7 @@ ..\Resources\Flowchart.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 + + ..\Resources\LogOutput.jpg;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/SMSModLogOutputAnalyzer/Resources/LogOutput.jpg b/SMSModLogOutputAnalyzer/Resources/LogOutput.jpg new file mode 100644 index 0000000..e673970 Binary files /dev/null and b/SMSModLogOutputAnalyzer/Resources/LogOutput.jpg differ