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); }
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); }