Skip to content

Commit

Permalink
oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
SylveonDeko committed Nov 13, 2023
1 parent b53a004 commit 08e7686
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mewdeko/Modules/OwnerOnly/Services/OwnerOnlyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ await redis.StringSetAsync($"{creds.RedisKey()}_CommitList",
{
Log.Information("New commit found: {CommitSha}", latestCommit.Sha);
await redis.StringSetAsync($"{creds.RedisKey()}_CommitList",
JsonConvert.SerializeObject(latestCommit));
latestCommit.Sha);
if (bss.Data.ForwardToAllOwners)
{
foreach (var i in creds.OwnerIds)
Expand Down
8 changes: 8 additions & 0 deletions src/Mewdeko/Services/Settings/BotConfigService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ public BotConfigService(IConfigSeria serializer, IPubSub pubSub)
AddParsedProp("chatgptwebhook", bs => bs.ChatGptWebhook, ConfigParsers.String, ConfigPrinters.ToString);
AddParsedProp("chatgptmodel", bs => bs.ChatGptModel, ConfigParsers.String, ConfigPrinters.ToString);
AddParsedProp("chatgptmaxtokens", bs => bs.ChatGptMaxTokens, int.TryParse, ConfigPrinters.ToString);
AddParsedProp("checkForUpdates", bs => bs.CheckForUpdates, Enum.TryParse, ConfigPrinters.ToString);
AddParsedProp("forwardMessages", bs => bs.ForwardMessages, bool.TryParse, ConfigPrinters.ToString);
AddParsedProp("forwardToAllOwners", bs => bs.ForwardToAllOwners, bool.TryParse, ConfigPrinters.ToString);
AddParsedProp("UpdateCheckType", bs => bs.CheckForUpdates, Enum.TryParse, ConfigPrinters.ToString);
AddParsedProp("UpdateBranch", bs => bs.UpdateBranch, ConfigParsers.String, ConfigPrinters.ToString);
AddParsedProp("CheckUpdateInterval", bs => bs.CheckUpdateInterval, int.TryParse, ConfigPrinters.ToString);
AddParsedProp("QuarantineNotification", bs => bs.QuarantineNotification, bool.TryParse,
ConfigPrinters.ToString);

UpdateColors();
}
Expand Down

0 comments on commit 08e7686

Please sign in to comment.