Skip to content

Commit

Permalink
need new wayback client
Browse files Browse the repository at this point in the history
also date wrap support message since amazon smile is ending
  • Loading branch information
czf committed Feb 6, 2023
1 parent 8e5a085 commit 07e5d32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ArchiveBot.Core/ArchiveBot.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageReference Include="Azure.Data.Tables" Version="12.7.1" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.14.1" />
<PackageReference Include="Czf.Api.NewsBankWrapper" Version="1.0.3" />
<PackageReference Include="czf.apiwrappers.waybackmachine" Version="2.1.0" />
<PackageReference Include="czf.apiwrappers.waybackmachine" Version="2.1.2" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.46" />
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.5" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="25.0.0" />
Expand Down
9 changes: 5 additions & 4 deletions ArchiveBot.Core/ArchiveBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public class ArchiveBot
private readonly EditForNewsbank _editForNewsbank;
private readonly CheckBotMail _checkBotMail;
private bool _checkTableExists = true;

private const string SUPPORT_LINKS =
@"^^You ^^can ^^support ^^Archive.org ^^via [^^(Amazon) ^^(Smile)](https://smile.amazon.com/ch/94-3242767)
^^You ^^can ^^support ^^Seattle ^^Public ^^Library ^^via [^^(Amazon) ^^(Smile)](https://smile.amazon.com/ch/91-1140642)";

private static bool? _debug;
public static bool Debug
Expand Down Expand Up @@ -305,13 +307,12 @@ private async Task<bool> ProcessPost(Post p, TableClient articleTableClient)
}
string msg =
$@"[Archive.org version.]({archivedUrl.ToString()})
$@"[Archive.org version.]({archivedUrl})
:0:
----
^^You ^^can ^^support ^^Archive.org ^^via [^^(Amazon) ^^(Smile)](https://smile.amazon.com/ch/94-3242767)
^^You ^^can ^^support ^^Seattle ^^Public ^^Library ^^via [^^(Amazon) ^^(Smile)](https://smile.amazon.com/ch/91-1140642)
{(DateTime.UtcNow < new DateTime(2023, 2,20) ? SUPPORT_LINKS : string.Empty)}
^^I'm ^^a ^^bot, ^^beep ^^boop [ ^^((fork) ^^(me) ^^(on) ^^(github))](https://github.com/czf/ArchiveBot)";
_log.LogInformation(msg);
Expand Down

0 comments on commit 07e5d32

Please sign in to comment.