Ejemplo n.º 1
0
        public async Task SetChannel()
        {
            var model = BirthdayService.GetConfig(Context.Guild.Id);

            model.BirthdayAnnouncementChannelId = Context.Channel.Id;
            BirthdayService.SaveConfig(model);

            await ReplyAsync($"Birthday Service Enabled: {model.Enabled}\n" +
                             $"Channel has been set to: {Context.Channel.Name}");
        }
Ejemplo n.º 2
0
        public async Task SetBirthdayRole(IRole role = null)
        {
            var model = BirthdayService.GetConfig(Context.Guild.Id);

            model.BirthdayRole = role?.Id ?? 0;
            BirthdayService.SaveConfig(model);

            await ReplyAsync($"Birthday Service Enabled: {model.Enabled}\n" +
                             $"Birthday Role: {role?.Mention ?? "N/A"}");
        }
Ejemplo n.º 3
0
        public async Task ToggleEnabled()
        {
            var model = BirthdayService.GetConfig(Context.Guild.Id);

            model.Enabled = !model.Enabled;
            BirthdayService.SaveConfig(model);

            await ReplyAsync($"Birthday Service Enabled: {model.Enabled}\n" +
                             $"NOTE: You need to run the setchannel and setrole command in order for this to work");
        }