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:
parent
e116263a9d
commit
0538cbb164
3 changed files with 43 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue