示例#1
0
        static public DiscordEmbedBuilder CreateWelcomeDM(DiscordMember pMember)
        {
            var pConfig = XML_RoomManage.Load();

            DiscordEmbedBuilder pEmbedBuilder = new DiscordEmbedBuilder();

            pEmbedBuilder
            .WithColor(DiscordColor.Green)
            .WithAuthor(pConfig.strWelcomeTitle_DM)
            .WithDescription(pConfig.strWelcomeText_DM);

            return(pEmbedBuilder);
        }
示例#2
0
        static async Task MainAsync(string[] args)
        {
            _pRoomManager = XML_RoomManage.Load();
            Strix.CBot.DoInitClient(out _pClient, out _pCommands);

            _pClient.GuildMemberAdded += _pClient_GuildMemberAdded;

            _pCommands.RegisterCommands <Command_RoomManage>();

            await _pClient.ConnectAsync();

            await Task.Delay(-1);
        }