Implemented .linkonly (as an alternative to .imageonly). Updated pokaman with latest generations. Updated responses, fixed some warnings

This commit is contained in:
Kwoth
2022-07-27 03:14:47 +02:00
parent e20212a6cb
commit bb395f18a2
13 changed files with 3017 additions and 35 deletions

View File

@@ -1,3 +1,4 @@
#nullable disable warnings
using LinqToDB;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.ModuleBehaviors;
@@ -391,9 +392,9 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
template = JsonConvert.DeserializeObject<XpTemplate>(
File.ReadAllText(XP_TEMPLATE_PATH),
settings);
settings)!;
if (template!.Version < 1)
if (template.Version < 1)
{
Log.Warning("Loaded default xp_template.json values as the old one was version 0. "
+ "Old one was renamed to xp_template.json.old");