Esempio n. 1
0
        private IEnumerator SpawnDatasets()
        {
            yield return(TimedActions.SpawnSeries(Host, Spawner, 7f, data, 0.1f, "Avg Daily Viewers"));

            // Set button state back to Default
            Debug.Log("Done spawning");
            spawnCoro = null;
        }
Esempio n. 2
0
        private async Task AddReminder(ulong messageId, ulong channelId, DateTimeOffset time)
        {
            var timedAction = new TimedActions()
            {
                ActionType   = ActionType.Remind,
                AtDateTime   = time.UtcDateTime,
                GuildId      = Context.Guild.Id,
                MaxDelay     = TimeSpan.FromMinutes(5),
                Module       = GetType().GetModuleName(),
                SourceId     = Context.User.Id,
                TargetId     = messageId,
                AdditionalId = channelId
            };

            await _timedActionsHandler.Add(timedAction);

            await _timedActionsHandler.Save();
        }