Skip to content

Commit af239c7

Browse files
committed
listadd: fix config option
Fixes #269
1 parent 85f3b48 commit af239c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Events/MessageEvent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Program.cfgjson.GitListDirectory is not null
297297
&& message.Author.Discriminator == "0000"
298298
&& message.Embeds is not null
299299
&& message.Embeds.Count > 0
300-
&& message.Embeds[0].Title.StartsWith("[lists] fileappend success"))
300+
&& message.Embeds[0].Title.StartsWith(Program.cfgjson.GithubWorkflowSucessString))
301301
{
302302
string command = $"cd Lists/{Program.cfgjson.GitListDirectory} && git pull";
303303
var msg = await LogChannelHelper.LogMessageAsync("home", $"{Program.cfgjson.Emoji.Loading} Updating private lists..");

Structs.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public ulong InsidersChannel
335335
public bool PingBotOwnersOnBadErrors { get; private set; } = false;
336336

337337
[JsonProperty("githubWorkflowSucessString")]
338-
public string HithubWorkflowSucessString { get; private set; } = "";
338+
public string GithubWorkflowSucessString { get; private set; } = "";
339339
}
340340

341341
public enum Level { Information, Warning, Error, Debug, Verbose }

0 commit comments

Comments
 (0)