Skip to content

Commit

Permalink
New icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Plenyx committed Sep 19, 2019
1 parent 449f970 commit 8877961
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 10 deletions.
30 changes: 30 additions & 0 deletions Forms/FormDiscordWebhooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ public async Task ExecuteSessionAllActiveWebhooksAsync(List<DPSReportJSON> repor
var FractalLogs = reportsJSON
.Where(anon => Bosses.IsFractal(anon.Evtc.BossId))
.ToList();
var StrikeLogs = reportsJSON
.Where(anon => Bosses.IsStrike(anon.Evtc.BossId))
.ToList();
var GolemLogs = reportsJSON
.Where(anon => Bosses.IsGolem(anon.Evtc.BossId))
.ToList();
Expand Down Expand Up @@ -302,6 +305,33 @@ public async Task ExecuteSessionAllActiveWebhooksAsync(List<DPSReportJSON> repor
}
}
}
if (StrikeLogs.Count > 0)
{
if (!builder.ToString().EndsWith("***\n"))
{
builder.Append("\n\n");
}
builder.Append("***Strike mission logs:***\n");
foreach (var log in StrikeLogs)
{
string bossName = log.Encounter.Boss;
var bossDataRef = allBosses
.Where(anon => anon.Value.BossId.Equals(log.Encounter.BossId))
.Select(anon => anon.Value);
if (bossDataRef.Count() == 1)
{
bossName = bossDataRef.First().Name;
}
builder.Append($"[{bossName}]({log.Permalink})\n");
if (builder.Length >= maxAllowedMessageSize)
{
messageCount++;
await SendDiscordMessage(logSessionSettings.Name + ((messageCount > 1) ? $" part {messageCount}" : ""), builder.ToString(), logSessionSettings.ContentText);
builder.Clear();
builder.Append("***Strike mission logs:***\n");
}
}
}
if (GolemLogs.Count > 0)
{
if (!builder.ToString().EndsWith("***\n"))
Expand Down
Binary file modified Icon.ico
Binary file not shown.
Binary file modified IconAssembly.ico
Binary file not shown.
20 changes: 10 additions & 10 deletions Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
Expand All @@ -26,29 +26,29 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
Expand Down

0 comments on commit 8877961

Please sign in to comment.