.cleverbot should be available on the public bot now

This commit is contained in:
Kwoth
2024-07-17 15:18:56 +00:00
parent 87b90b47ce
commit 4c5c2d7f6e
4 changed files with 49 additions and 30 deletions

View File

@@ -182,15 +182,6 @@ public static class GuildConfigExtensions
.SelectMany(gc => gc.FollowedStreams)
.ToList();
public static void SetCleverbotEnabled(this DbSet<GuildConfig> configs, ulong id, bool cleverbotEnabled)
{
var conf = configs.FirstOrDefault(gc => gc.GuildId == id);
if (conf is null)
return;
conf.CleverbotEnabled = cleverbotEnabled;
}
public static XpSettings XpSettingsFor(this DbContext ctx, ulong guildId)
{