예제 #1
0
        public async Task AddStatus(CommandContext ctx, ActivityType type, [RemainingText] string activity)
        {
            if (!StatusModule.IsValidStatus(type, activity))
            {
                await ctx.Channel.SendMessageAsync($"{ctx.Author.Mention}, Invalid status!");

                return;
            }

            await StatusModule.AddStatus(type, activity);
        }
예제 #2
0
        public async Task SetStatus(CommandContext ctx, ActivityType type, [RemainingText] string activity)
        {
            if (!StatusModule.IsValidStatus(type, activity))
            {
                await ctx.Channel.SendMessageAsync($"{ctx.Author.Mention}, Invalid status!");

                return;
            }

            StatusModule.StatusConfig.Mode = StatusMode.Manual;
            StatusModule.StatusTimer.Stop();
            await StatusModule.SetStatus(type, activity);
        }