1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-30 02:59:54 +03:00

Save important data about scheduled events to disk

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-06-02 17:08:55 +05:00
parent e116263a9d
commit 0538cbb164
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
3 changed files with 43 additions and 7 deletions

View file

@ -1,11 +1,22 @@
using System.Globalization;
namespace Boyfriend.Data;
public class GuildData {
public readonly GuildConfiguration Configuration;
public readonly string ConfigurationPath;
public GuildData(GuildConfiguration configuration, string configurationPath) {
public readonly Dictionary<ulong, ScheduledEventData> ScheduledEvents;
public readonly string ScheduledEventsPath;
public GuildData(
GuildConfiguration configuration, string configurationPath,
Dictionary<ulong, ScheduledEventData> scheduledEvents, string scheduledEventsPath) {
Configuration = configuration;
ConfigurationPath = configurationPath;
ScheduledEvents = scheduledEvents;
ScheduledEventsPath = scheduledEventsPath;
}
public CultureInfo Culture => Configuration.Culture;
}