Exemplo n.º 1
0
        public async Task FigureWait()
        {
            if (figureInRoom == true && attackfigure == false)
            {
                EmbedBuilder embed = new EmbedBuilder();
                embed.WithDescription("I wait as the figure waits in the dark corner.");
                embed.AddField("Finally, they begin to calmly awaken", "All they do is say 'Florence is lying to you'");
                await LoungeChannel.SendMessageAsync("", false, embed.Build());

                EmbedBuilder embed1 = new EmbedBuilder();
                embed1.AddField("A White light blinds my vision. I think this is the way out.", "https://discord.gg/UvWRxnZ");
                await Task.Delay(3000).ContinueWith(t => LoungeChannel.SendMessageAsync("", false, embed1.Build()));

                var user = Context.User as SocketGuildUser;
                await user.RemoveRoleAsync(LoungeRoom);

                player2Free = true;

                await LoungeChannel.DeleteAsync();

                await LoungeRoom.DeleteAsync();

                await Task.Delay(20000).ContinueWith(t => FinishDestroy());
            }
        }
Exemplo n.º 2
0
        public async Task Escape()
        {
            var user  = Context.User as SocketGuildUser;
            var NavID = user.Guild.GetRole(Navigator.Id);

            if (!user.Roles.Contains(NavID))
            {
                return;
            }
            //CHANGE STATE BACK TO 16
            if (States.state == States.StatesList[16])
            {
                EmbedBuilder Embed = new EmbedBuilder();
                Embed.WithAuthor("Florence Carter");
                Embed.WithDescription("With the door open, I run out into the outside");
                Embed.AddField("my eyes finally adapt to the blinding light", "There's nothing around but white ... nothingness, What's going on?");

                await GameChannel.SendMessageAsync("", false, Embed.Build());

                EmbedBuilder Embed2 = new EmbedBuilder();
                Embed2.WithAuthor("DDA SYSTEMS");
                Embed2.WithDescription("SYSTEM ERROR - NAVIGATION SOFTWARE OVERRIDE DETECTED");
                Embed2.AddField("SYSTEM RESET >...FAILURE", "ERROR>>ERR&@R...*SD)!@#SCSD...ESC@P3");

                await Task.Delay(5000).ContinueWith(t => GameChannel.SendMessageAsync("", false, Embed2.Build()));

                EmbedBuilder Embed1 = new EmbedBuilder();
                Embed1.WithAuthor("Intruder");
                Embed1.WithColor(Color.Red);
                Embed1.WithDescription("Congratulations, detectives, how clever you all are for solving such enigmatic puzzles.");
                Embed1.AddField("What, did you really think you could navigate a mind without any interference", "Why are you doing this, do you really think it will help?");

                await Task.Delay(5000).ContinueWith(t => GameChannel.SendMessageAsync("", false, Embed1.Build()));

                EmbedBuilder Embed3 = new EmbedBuilder();
                Embed3.WithAuthor("Intruder");
                Embed3.WithColor(Color.Red);
                Embed3.WithDescription("Let's see how you cope without your partners");

                await Task.Delay(5000).ContinueWith(t => GameChannel.SendMessageAsync("", false, Embed3.Build()));

                States.state = States.StatesList[17];


                //setup for room 2
                Study = await Context.Guild.CreateRoleAsync("Study", null, Color.DarkGreen, false, null);

                Kids_Bedroom = await Context.Guild.CreateRoleAsync("Kids Bedroom", null, Color.Orange, false, null);


                await Task.Delay(2000).ContinueWith(t => SetupRoom2());

                await Task.Delay(7000).ContinueWith(t =>
                {
                    GameChannel.DeleteAsync();
                    Navigator.DeleteAsync();
                });
            }
        }
Exemplo n.º 3
0
        public async Task FinishDestroy()
        {
            if (player1Free && player2Free)
            {
                await Room1.StudyChannel.DeleteAsync();

                await Room1.BedroomChannel.DeleteAsync();

                await Room1.Kids_Bedroom.DeleteAsync();

                await Room1.Study.DeleteAsync();

                await Room3.KitchenChannel.DeleteAsync();

                await Room3.MasterBedChannel.DeleteAsync();

                await Room3.Master_Bedroom.DeleteAsync();

                await Room3.Kitchen.DeleteAsync();

                await LoungeChannel.DeleteAsync();

                await LivingRoomChannel.DeleteAsync();

                await LoungeRoom.DeleteAsync();

                await LivingRoom.DeleteAsync();
            }
        }
Exemplo n.º 4
0
        public async Task Teardown()
        {
            // TODO Maybe confirm with user (but that could break statelessness)

            foreach (SocketCategoryChannel category in GetGroupCategories())
            {
                foreach (SocketGuildChannel innerChannel in category.Channels)
                {
                    await innerChannel.DeleteAsync();
                }

                await category.DeleteAsync();
            }

            int deletedRolesCount = 0; // this isn't always reliable but provides some user feedback

            foreach (SocketRole role in GetGroupRoles())
            {
                await role.DeleteAsync();

                deletedRolesCount++;
            }

            await ReplyAsync(string.Format(_textConfig.GroupsDeleted, deletedRolesCount));
        }