Exemplo n.º 1
0
        public async Task StartMeetingCommand(CommandContext ctx)
        {
            CrabgileMeeting crabgileMeeting = CrabgileMeeting.GetMeetingFromHost(ctx.Member);

            if (crabgileMeeting is CrabgileTimebox)
            {
                ((CrabgileTimebox)crabgileMeeting).BeginTimeboxMeeting();
            }
            await TryDeleteUserMessage(ctx);
        }
Exemplo n.º 2
0
 public async Task EndMeetingCommand(CommandContext ctx)
 {
     if (CrabgileMeeting.IsDiscordUserMeetingHost(ctx.Member))
     {
         await CrabgileMeeting.GetMeetingFromHost(ctx.Member).CloseMeeting();
     }
     else
     {
         await ctx.RespondAsync($"I'm afraid there's no meeting in progress, {ctx.Member.Mention}!");
     }
     await TryDeleteUserMessage(ctx);
 }