How to use setName method in pact-foundation-pact

Best JavaScript code snippet using pact-foundation-pact

2019-rookies.ts

Source:2019-rookies.ts Github

copy

Full Screen

1import { Position } from '../../positions/position';2import { Player } from '../player';3import { Team } from '../../teams/team';4export const ROOKIES_2019 = [5 Player.newBuilder().setPosition(Position.C).setName('Cesar Ruiz').setTeam(Team.NOR).setAge(21).setSchool('Michigan').build(),6 Player.newBuilder().setPosition(Position.C).setName('Dustin Woodard').setTeam(Team.NWE).setAge(22).setSchool('Memphis').build(),7 Player.newBuilder().setPosition(Position.C).setName('Jake Hanson').setTeam(Team.GNB).setAge(23).setSchool('Oregon').build(),8 Player.newBuilder().setPosition(Position.C).setName('Keith Ismael').setTeam(Team.WAS).setAge(22).setSchool('San Diego St.').build(),9 Player.newBuilder().setPosition(Position.C).setName('Lloyd Cushenberry III').setTeam(Team.DEN).setAge(22).setSchool('LSU').build(),10 Player.newBuilder().setPosition(Position.C).setName('Matt Hennessy').setTeam(Team.ATL).setAge(22).setSchool('Temple').build(),11 Player.newBuilder().setPosition(Position.C).setName('Nick Harris').setTeam(Team.CLE).setAge(21).setSchool('Washington').build(),12 Player.newBuilder().setPosition(Position.C).setName('Tyler Biadasz').setTeam(Team.DAL).setAge(22).setSchool('Wisconsin').build(),13 Player.newBuilder().setPosition(Position.CB).setName('AJ Terrell').setTeam(Team.ATL).setAge(21).setSchool('Clemson').build(),14 Player.newBuilder().setPosition(Position.CB).setName('Amik Robertson').setTeam(Team.LVR).setAge(22).setSchool('Louisiana Tech').build(),15 Player.newBuilder().setPosition(Position.CB).setName('Bryce Hall').setTeam(Team.NYJ).setAge(23).setSchool('Virginia').build(),16 Player.newBuilder().setPosition(Position.CB).setName('C.J. Henderson').setTeam(Team.JAX).setAge(21).setSchool('Florida').build(),17 Player.newBuilder().setPosition(Position.CB).setName('Cameron Dantzler').setTeam(Team.MIN).setAge(22).setSchool('Mississippi St.').build(),18 Player.newBuilder().setPosition(Position.CB).setName('Chris Claybrooks').setTeam(Team.JAX).setAge(23).setSchool('Memphis').build(),19 Player.newBuilder().setPosition(Position.CB).setName('Chris Williamson').setTeam(Team.NYG).setAge(23).setSchool('Minnesota').build(),20 Player.newBuilder().setPosition(Position.CB).setName('Damon Arnette').setTeam(Team.LVR).setAge(24).setSchool('Ohio St.').build(),21 Player.newBuilder().setPosition(Position.CB).setName('Dane Jackson').setTeam(Team.BUF).setAge(23).setSchool('Pittsburgh').build(),22 Player.newBuilder().setPosition(Position.CB).setName('Darnay Holmes').setTeam(Team.NYG).setAge(22).setSchool('UCLA').build(),23 Player.newBuilder().setPosition(Position.CB).setName('Harrison Hand').setTeam(Team.MIN).setAge(21).setSchool('Temple').build(),24 Player.newBuilder().setPosition(Position.CB).setName('Isaiah Rodgers').setTeam(Team.IND).setAge(22).setSchool('Massachusetts').build(),25 Player.newBuilder().setPosition(Position.CB).setName('Jaylon Johnson').setTeam(Team.CHI).setAge(21).setSchool('Utah').build(),26 Player.newBuilder().setPosition(Position.CB).setName('Jeff Gladney').setTeam(Team.MIN).setAge(23).setSchool('TCU').build(),27 Player.newBuilder().setPosition(Position.CB).setName('Jeff Okudah').setTeam(Team.DET).setAge(21).setSchool('Ohio St.').build(),28 Player.newBuilder().setPosition(Position.CB).setName('John Reid').setTeam(Team.HOU).setAge(24).setSchool('Penn St.').build(),29 Player.newBuilder().setPosition(Position.CB).setName('Josiah Scott').setTeam(Team.JAX).setAge(21).setSchool('Michigan St.').build(),30 Player.newBuilder().setPosition(Position.CB).setName('Kindle Vildor').setTeam(Team.CHI).setAge(22).setSchool('Georgia Southern').build(),31 Player.newBuilder().setPosition(Position.CB).setName('Kristian Fulton').setTeam(Team.TEN).setAge(22).setSchool('LSU').build(),32 Player.newBuilder().setPosition(Position.CB).setName('Michael Ojemudia').setTeam(Team.DEN).setAge(22).setSchool('Iowa').build(),33 Player.newBuilder().setPosition(Position.CB).setName('Noah Igbinoghene').setTeam(Team.MIA).setAge(20).setSchool('Auburn').build(),34 Player.newBuilder().setPosition(Position.CB).setName('Reggie Robinson II').setTeam(Team.DAL).setAge(23).setSchool('Tulsa').build(),35 Player.newBuilder().setPosition(Position.CB).setName('Stantley Thomas-Oliver').setTeam(Team.CAR).setAge(22).setSchool('Florida International').build(),36 Player.newBuilder().setPosition(Position.CB).setName('Thakarius Keyes').setTeam(Team.KAN).setAge(22).setSchool('Tulane').build(),37 Player.newBuilder().setPosition(Position.CB).setName('Trevon Diggs').setTeam(Team.DAL).setAge(21).setSchool('Alabama').build(),38 Player.newBuilder().setPosition(Position.CB).setName('Troy Pride Jr.').setTeam(Team.CAR).setAge(22).setSchool('Notre Dame').build(),39 Player.newBuilder().setPosition(Position.DE).setName('A.J. Epenesa').setTeam(Team.BUF).setAge(21).setSchool('Iowa').build(),40 Player.newBuilder().setPosition(Position.DE).setName('Alton Robinson').setTeam(Team.SEA).setAge(22).setSchool('Syracuse').build(),41 Player.newBuilder().setPosition(Position.DE).setName('Bradlee Anae').setTeam(Team.DAL).setAge(21).setSchool('Utah').build(),42 Player.newBuilder().setPosition(Position.DE).setName('Casey Toohill').setTeam(Team.PHI).setAge(24).setSchool('Stanford').build(),43 Player.newBuilder().setPosition(Position.DE).setName('Chase Young').setTeam(Team.WAS).setAge(21).setSchool('Ohio St.').build(),44 Player.newBuilder().setPosition(Position.DE).setName('Curtis Weaver').setTeam(Team.MIA).setAge(22).setSchool('Boise St.').build(),45 Player.newBuilder().setPosition(Position.DE).setName('D.J. Wonnum').setTeam(Team.MIN).setAge(22).setSchool('South Carolina').build(),46 Player.newBuilder().setPosition(Position.DE).setName('Darrell Taylor').setTeam(Team.SEA).setAge(23).setSchool('Tennessee').build(),47 Player.newBuilder().setPosition(Position.DE).setName('Jabari Zuniga').setTeam(Team.NYJ).setAge(23).setSchool('Florida').build(),48 Player.newBuilder().setPosition(Position.DE).setName('James Smith-Williams').setTeam(Team.WAS).setAge(23).setSchool('North Carolina St.').build(),49 Player.newBuilder().setPosition(Position.DE).setName('Jason Strowbridge').setTeam(Team.MIA).setAge(23).setSchool('North Carolina').build(),50 Player.newBuilder().setPosition(Position.DE).setName('Jonathan Garvin').setTeam(Team.GNB).setAge(21).setSchool('Miami (FL)').build(),51 Player.newBuilder().setPosition(Position.DE).setName('Jonathan Greenard').setTeam(Team.HOU).setAge(23).setSchool('Florida').build(),52 Player.newBuilder().setPosition(Position.DE).setName('Julian Okwara').setTeam(Team.DET).setAge(22).setSchool('Notre Dame').build(),53 Player.newBuilder().setPosition(Position.DE).setName("K'Lavon Chaisson").setTeam(Team.JAX).setAge(21).setSchool('LSU').build(),54 Player.newBuilder().setPosition(Position.DE).setName('Kenny Willekes').setTeam(Team.MIN).setAge(23).setSchool('Michigan St.').build(),55 Player.newBuilder().setPosition(Position.DE).setName('Khalid Kareem').setTeam(Team.CIN).setAge(22).setSchool('Notre Dame').build(),56 Player.newBuilder().setPosition(Position.DE).setName('Marlon Davidson').setTeam(Team.ATL).setAge(22).setSchool('Auburn').build(),57 Player.newBuilder().setPosition(Position.DE).setName('Michael Danna').setTeam(Team.KAN).setAge(22).setSchool('Michigan').build(),58 Player.newBuilder().setPosition(Position.DE).setName('Trevis Gipson').setTeam(Team.CHI).setAge(23).setSchool('Tulsa').build(),59 Player.newBuilder().setPosition(Position.DE).setName('Yetur Gross-Matos').setTeam(Team.CAR).setAge(22).setSchool('Penn St.').build(),60 Player.newBuilder().setPosition(Position.DT).setName('Bravvion Roy').setTeam(Team.CAR).setAge(23).setSchool('Baylor').build(),61 Player.newBuilder().setPosition(Position.DT).setName('Broderick Washington Jr.').setTeam(Team.BAL).setAge(23).setSchool('Texas Tech').build(),62 Player.newBuilder().setPosition(Position.DT).setName('Carlos Davis').setTeam(Team.PIT).setAge(24).setSchool('Nebraska').build(),63 Player.newBuilder().setPosition(Position.DT).setName('DaVon Hamilton').setTeam(Team.JAX).setAge(23).setSchool('Ohio St.').build(),64 Player.newBuilder().setPosition(Position.DT).setName('Derrick Brown').setTeam(Team.CAR).setAge(22).setSchool('Auburn').build(),65 Player.newBuilder().setPosition(Position.DT).setName('James Lynch').setTeam(Team.MIN).setAge(21).setSchool('Baylor').build(),66 Player.newBuilder().setPosition(Position.DT).setName('Jashon Cornell').setTeam(Team.DET).setAge(23).setSchool('Ohio St.').build(),67 Player.newBuilder().setPosition(Position.DT).setName('Javon Kinlaw').setTeam(Team.SFO).setAge(22).setSchool('South Carolina').build(),68 Player.newBuilder().setPosition(Position.DT).setName('John Penisini').setTeam(Team.DET).setAge(23).setSchool('Utah').build(),69 Player.newBuilder().setPosition(Position.DT).setName('Jordan Elliott').setTeam(Team.CLE).setAge(22).setSchool('Texas').build(),70 Player.newBuilder().setPosition(Position.DT).setName('Justin Madubuike').setTeam(Team.BAL).setAge(22).setSchool('Texas A&M').build(),71 Player.newBuilder().setPosition(Position.DT).setName('Khalil Davis').setTeam(Team.TAM).setAge(24).setSchool('Nebraska').build(),72 Player.newBuilder().setPosition(Position.DT).setName('Larrell Murchison').setTeam(Team.TEN).setAge(23).setSchool('North Carolina St.').build(),73 Player.newBuilder().setPosition(Position.DT).setName('Leki Fotu').setTeam(Team.ARI).setAge(22).setSchool('Utah').build(),74 Player.newBuilder().setPosition(Position.DT).setName('McTelvin Agim').setTeam(Team.DEN).setAge(22).setSchool('Arkansas').build(),75 Player.newBuilder().setPosition(Position.DE).setName('Neville Gallimore').setTeam(Team.DAL).setAge(23).setSchool('Oklahoma').build(),76 Player.newBuilder().setPosition(Position.DT).setName('Raekwon Davis').setTeam(Team.MIA).setAge(23).setSchool('Alabama').build(),77 Player.newBuilder().setPosition(Position.DT).setName('Rashard Lawrence').setTeam(Team.ARI).setAge(22).setSchool('LSU').build(),78 Player.newBuilder().setPosition(Position.DT).setName('Robert Windsor').setTeam(Team.IND).setAge(23).setSchool('Penn St.').build(),79 Player.newBuilder().setPosition(Position.DT).setName('Ross Blacklock').setTeam(Team.HOU).setAge(22).setSchool('TCU').build(),80 Player.newBuilder().setPosition(Position.G).setName('Ben Bartch').setTeam(Team.JAX).setAge(22).setSchool("Saint John's").build(),81 Player.newBuilder().setPosition(Position.G).setName('Ben Bredeson').setTeam(Team.BAL).setAge(22).setSchool('Michigan').build(),82 Player.newBuilder().setPosition(Position.G).setName('Damien Lewis').setTeam(Team.SEA).setAge(23).setSchool('LSU').build(),83 Player.newBuilder().setPosition(Position.G).setName('Danny Pinter').setTeam(Team.IND).setAge(24).setSchool('Ball St.').build(),84 Player.newBuilder().setPosition(Position.G).setName('Jack Driscoll').setTeam(Team.PHI).setAge(23).setSchool('Auburn').build(),85 Player.newBuilder().setPosition(Position.G).setName('John Simpson').setTeam(Team.LVR).setAge(23).setSchool('Clemson').build(),86 Player.newBuilder().setPosition(Position.G).setName('Jonah Jackson').setTeam(Team.DET).setAge(23).setSchool('Rutgers').build(),87 Player.newBuilder().setPosition(Position.G).setName('Kevin Dotson').setTeam(Team.PIT).setAge(23).setSchool('Louisiana').build(),88 Player.newBuilder().setPosition(Position.G).setName('Kyle Hinton').setTeam(Team.MIN).setAge(22).setSchool('0').build(),89 Player.newBuilder().setPosition(Position.G).setName('Lachavious Simmons').setTeam(Team.CHI).setAge(23).setSchool('').build(),90 Player.newBuilder().setPosition(Position.G).setName('Logan Stenberg').setTeam(Team.DET).setAge(23).setSchool('Kentucky').build(),91 Player.newBuilder().setPosition(Position.G).setName('Michael Onwenu').setTeam(Team.NWE).setAge(22).setSchool('Michigan').build(),92 Player.newBuilder().setPosition(Position.G).setName('Netane Muti').setTeam(Team.DEN).setAge(21).setSchool('Fresno St.').build(),93 Player.newBuilder().setPosition(Position.G).setName('Robert Hunt').setTeam(Team.MIA).setAge(24).setSchool('Louisiana').build(),94 Player.newBuilder().setPosition(Position.G).setName('Shane Lemieux').setTeam(Team.NYG).setAge(23).setSchool('Oregon').build(),95 Player.newBuilder().setPosition(Position.G).setName('Solomon Kindley').setTeam(Team.MIA).setAge(23).setSchool('Georgia').build(),96 Player.newBuilder().setPosition(Position.G).setName('Tremayne Anchrum').setTeam(Team.LAR).setAge(22).setSchool('Clemson').build(),97 Player.newBuilder().setPosition(Position.K).setName('Justin Rohrwasser').setTeam(Team.NWE).setAge(23).setSchool('Marshall').build(),98 Player.newBuilder().setPosition(Position.K).setName('Sam Sloman').setTeam(Team.LAR).setAge(22).setSchool('Miami (OH)').build(),99 Player.newBuilder().setPosition(Position.K).setName('Tyler Bass').setTeam(Team.BUF).setAge(23).setSchool('Georgia Southern').build(),100 Player.newBuilder().setPosition(Position.LB).setName('Akeem Davis-Gaither').setTeam(Team.CIN).setAge(22).setSchool('Appalachian St.').build(),101 Player.newBuilder().setPosition(Position.LB).setName('Alex Highsmith').setTeam(Team.PIT).setAge(23).setSchool('Charlotte').build(),102 Player.newBuilder().setPosition(Position.LB).setName('Anfernee Jennings').setTeam(Team.NWE).setAge(23).setSchool('Alabama').build(),103 Player.newBuilder().setPosition(Position.LB).setName('Cam Brown').setTeam(Team.NYG).setAge(22).setSchool('Penn St.').build(),104 Player.newBuilder().setPosition(Position.LB).setName('Carter Coughlin').setTeam(Team.NYG).setAge(23).setSchool('Minnesota').build(),105 Player.newBuilder().setPosition(Position.LB).setName('Cassh Maluia').setTeam(Team.NWE).setAge(21).setSchool('Wyoming').build(),106 Player.newBuilder().setPosition(Position.LB).setName('Chapelle Russell').setTeam(Team.TAM).setAge(23).setSchool('Temple').build(),107 Player.newBuilder().setPosition(Position.LB).setName('Clay Johnston').setTeam(Team.LAR).setAge(24).setSchool('Baylor').build(),108 Player.newBuilder().setPosition(Position.LB).setName('Davion Taylor').setTeam(Team.PHI).setAge(22).setSchool('Colorado').build(),109 Player.newBuilder().setPosition(Position.LB).setName('Derrek Tuszka').setTeam(Team.DEN).setAge(24).setSchool('North').build(),110 Player.newBuilder().setPosition(Position.LB).setName('Evan Weaver').setTeam(Team.ARI).setAge(22).setSchool('California').build(),111 Player.newBuilder().setPosition(Position.LB).setName('Isaiah Simmons').setTeam(Team.ARI).setAge(22).setSchool('Clemson').build(),112 Player.newBuilder().setPosition(Position.LB).setName('Jacob Phillips').setTeam(Team.CLE).setAge(21).setSchool('LSU').build(),113 Player.newBuilder().setPosition(Position.LB).setName('Jordan Glasgow').setTeam(Team.IND).setAge(24).setSchool('Michigan').build(),114 Player.newBuilder().setPosition(Position.LB).setName('Jordyn Brooks').setTeam(Team.SEA).setAge(22).setSchool('Texas Tech').build(),115 Player.newBuilder().setPosition(Position.LB).setName('Josh Uche').setTeam(Team.NWE).setAge(21).setSchool('Michigan').build(),116 Player.newBuilder().setPosition(Position.LB).setName('Justin Strnad').setTeam(Team.DEN).setAge(24).setSchool('Wake Forest').build(),117 Player.newBuilder().setPosition(Position.LB).setName('Kamal Martin').setTeam(Team.GNB).setAge(22).setSchool('Minnesota').build(),118 Player.newBuilder().setPosition(Position.LB).setName('Kenneth Murray').setTeam(Team.LAC).setAge(21).setSchool('Oklahoma').build(),119 Player.newBuilder().setPosition(Position.LB).setName('Khaleke Hudson').setTeam(Team.WAS).setAge(22).setSchool('Michigan').build(),120 Player.newBuilder().setPosition(Position.LB).setName('Logan Wilson').setTeam(Team.CIN).setAge(24).setSchool('Wyoming').build(),121 Player.newBuilder().setPosition(Position.LB).setName('Malik Harrison').setTeam(Team.BAL).setAge(22).setSchool('Ohio St.').build(),122 Player.newBuilder().setPosition(Position.LB).setName('Markus Bailey').setTeam(Team.CIN).setAge(23).setSchool('Purdue').build(),123 Player.newBuilder().setPosition(Position.LB).setName('Mykal Walker').setTeam(Team.ATL).setAge(23).setSchool('Fresno St.').build(),124 Player.newBuilder().setPosition(Position.LB).setName('Patrick Queen').setTeam(Team.BAL).setAge(21).setSchool('LSU').build(),125 Player.newBuilder().setPosition(Position.LB).setName('Shaquille Quarterman').setTeam(Team.JAX).setAge(22).setSchool('Miami (FL)').build(),126 Player.newBuilder().setPosition(Position.LB).setName('Shaun Bradley').setTeam(Team.PHI).setAge(23).setSchool('Temple').build(),127 Player.newBuilder().setPosition(Position.LB).setName('T.J. Brunson').setTeam(Team.NYG).setAge(22).setSchool('South Carolina').build(),128 Player.newBuilder().setPosition(Position.LB).setName('Tae Crowder').setTeam(Team.NYG).setAge(23).setSchool('Georgia').build(),129 Player.newBuilder().setPosition(Position.LB).setName('Terrell Lewis').setTeam(Team.LAR).setAge(22).setSchool('Alabama').build(),130 Player.newBuilder().setPosition(Position.LB).setName('Troy Dye').setTeam(Team.MIN).setAge(23).setSchool('Oregon').build(),131 Player.newBuilder().setPosition(Position.LB).setName('Willie Gay Jr.').setTeam(Team.KAN).setAge(22).setSchool('Mississippi St.').build(),132 Player.newBuilder().setPosition(Position.LB).setName('Zack Baun').setTeam(Team.NOR).setAge(23).setSchool('Wisconsin').build(),133 Player.newBuilder().setPosition(Position.LS).setName('Blake Ferguson').setTeam(Team.MIA).setAge(23).setSchool('LSU').build(),134 Player.newBuilder().setPosition(Position.P).setName('Braden Mann').setTeam(Team.NYJ).setAge(22).setSchool('Texas A&M').build(),135 Player.newBuilder().setPosition(Position.P).setName('Sterling Hofrichter').setTeam(Team.ATL).setAge(23).setSchool('Syracuse').build(),136 Player.newBuilder().setPosition(Position.QB).setName('Ben DiNucci').setTeam(Team.DAL).setAge(23).setSchool('James Madison').build(),137 Player.newBuilder().setPosition(Position.QB).setName('Cole McDonald').setTeam(Team.TEN).setSchool('Hawaii').build(),138 Player.newBuilder().setPosition(Position.QB).setName('Jacob Eason').setTeam(Team.IND).setAge(22).setSchool('Washington').build(),139 Player.newBuilder().setPosition(Position.QB).setName('Jake Fromm').setTeam(Team.BUF).setAge(22).setSchool('Georgia').build(),140 Player.newBuilder().setPosition(Position.QB).setName('Jake Luton').setTeam(Team.JAX).setAge(24).setSchool('Oregon St.').build(),141 Player.newBuilder().setPosition(Position.QB).setName('Jalen Hurts').setTeam(Team.PHI).setAge(22).setSchool('Alabama').build(),142 Player.newBuilder().setPosition(Position.QB).setName('James Morgan').setTeam(Team.NYJ).setAge(23).setSchool('Florida International').build(),143 Player.newBuilder().setPosition(Position.QB).setName('Joe Burrow').setTeam(Team.CIN).setAge(23).setSchool('LSU').build(),144 Player.newBuilder().setPosition(Position.QB).setName('Jordan Love').setTeam(Team.GNB).setAge(21).setSchool('Utah St.').build(),145 Player.newBuilder().setPosition(Position.QB).setName('Justin Herbert').setTeam(Team.LAC).setAge(22).setSchool('Oregon').build(),146 Player.newBuilder().setPosition(Position.QB).setName('Nate Stanley').setTeam(Team.MIN).setAge(23).setSchool('Iowa').build(),147 Player.newBuilder().setPosition(Position.QB).setName('Tommy Stevens').setTeam(Team.NOR).setAge(23).setSchool('Mississippi St.').build(),148 Player.newBuilder().setPosition(Position.QB).setName('Tua Tagovailoa').setTeam(Team.MIA).setAge(22).setSchool('Alabama').build(),149 Player.newBuilder().setPosition(Position.RB).setName('AJ Dillon').setTeam(Team.GNB).setAge(22).setSchool('Boston Col.').build(),150 Player.newBuilder().setPosition(Position.RB).setName('Anthony McFarland Jr.').setTeam(Team.PIT).setAge(21).setSchool('Maryland').build(),151 Player.newBuilder().setPosition(Position.RB).setName('Antonio Gibson').setTeam(Team.WAS).setAge(22).setSchool('Memphis').build(),152 Player.newBuilder().setPosition(Position.RB).setName('Cam Akers').setTeam(Team.LAR).setAge(21).setSchool('Florida St.').build(),153 Player.newBuilder().setPosition(Position.RB).setName('Clyde Edwards-Helaire').setTeam(Team.KAN).setAge(21).setSchool('LSU').build(),154 Player.newBuilder().setPosition(Position.RB).setName("D'Andre Swift").setTeam(Team.DET).setAge(21).setSchool('Georgia').build(),155 Player.newBuilder().setPosition(Position.RB).setName('Darrynton Evans').setTeam(Team.TEN).setAge(22).setSchool('Appalachian St.').build(),156 Player.newBuilder().setPosition(Position.RB).setName('DeeJay Dallas').setTeam(Team.SEA).setAge(21).setSchool('Miami (FL)').build(),157 Player.newBuilder().setPosition(Position.RB).setName('Eno Benjamin').setTeam(Team.ARI).setAge(21).setSchool('Arizona St.').build(),158 Player.newBuilder().setPosition(Position.RB).setName('J.K. Dobbins').setTeam(Team.BAL).setAge(21).setSchool('Ohio St.').build(),159 Player.newBuilder().setPosition(Position.RB).setName('Jason Huntley').setTeam(Team.DET).setAge(22).setSchool('New Mexico St.').build(),160 Player.newBuilder().setPosition(Position.RB).setName('Jonathan Taylor').setTeam(Team.IND).setAge(21).setSchool('Wisconsin').build(),161 Player.newBuilder().setPosition(Position.RB).setName('Joshua Kelley').setTeam(Team.LAC).setAge(22).setSchool('UCLA').build(),162 Player.newBuilder().setPosition(Position.RB).setName("Ke'Shawn Vaughn").setTeam(Team.TAM).setAge(23).setSchool('Illinois').build(),163 Player.newBuilder().setPosition(Position.RB).setName("La'Mical Perine").setTeam(Team.NYJ).setAge(22).setSchool('Florida').build(),164 Player.newBuilder().setPosition(Position.RB).setName('Malcolm Perry').setTeam(Team.MIA).setAge(23).setSchool('Navy').build(),165 Player.newBuilder().setPosition(Position.RB).setName('Raymond Calais').setTeam(Team.TAM).setAge(22).setSchool('Louisiana').build(),166 Player.newBuilder().setPosition(Position.RB).setName('Zack Moss').setTeam(Team.BUF).setAge(22).setSchool('Utah').build(),167 Player.newBuilder().setPosition(Position.S).setName('Alohi Gilman').setTeam(Team.LAC).setAge(22).setSchool('Notre Dame').build(),168 Player.newBuilder().setPosition(Position.S).setName('Antoine Brooks Jr.').setTeam(Team.PIT).setAge(21).setSchool('Maryland').build(),169 Player.newBuilder().setPosition(Position.S).setName('Antoine Winfield Jr.').setTeam(Team.TAM).setAge(22).setSchool('Minnesota').build(),170 Player.newBuilder().setPosition(Position.S).setName('Ashtyn Davis').setTeam(Team.NYJ).setAge(23).setSchool('California').build(),171 Player.newBuilder().setPosition(Position.S).setName('Brandon Jones').setTeam(Team.MIA).setAge(22).setSchool('Texas').build(),172 Player.newBuilder().setPosition(Position.S).setName('Brian Cole II').setTeam(Team.MIN).setAge(23).setSchool('Mississippi St.').build(),173 Player.newBuilder().setPosition(Position.S).setName('Chris Jackson').setTeam(Team.TEN).setAge(22).setSchool('Marshall').build(),174 Player.newBuilder().setPosition(Position.S).setName('Daniel Thomas').setTeam(Team.JAX).setAge(22).setSchool('Auburn').build(),175 Player.newBuilder().setPosition(Position.S).setName('Geno Stone').setTeam(Team.BAL).setAge(21).setSchool('Iowa').build(),176 Player.newBuilder().setPosition(Position.S).setName('Grant Delpit').setTeam(Team.CLE).setAge(21).setSchool('LSU').build(),177 Player.newBuilder().setPosition(Position.S).setName('Jaylinn Hawkins').setTeam(Team.ATL).setAge(23).setSchool('California').build(),178 Player.newBuilder().setPosition(Position.S).setName('Jeremy Chinn').setTeam(Team.CAR).setAge(22).setSchool('Southern Illinois').build(),179 Player.newBuilder().setPosition(Position.S).setName('Jordan Fuller').setTeam(Team.LAR).setAge(22).setSchool('Ohio St.').build(),180 Player.newBuilder().setPosition(Position.S).setName('Josh Metellus').setTeam(Team.MIN).setAge(22).setSchool('Michigan').build(),181 Player.newBuilder().setPosition(Position.S).setName('Julian Blackmon').setTeam(Team.IND).setAge(22).setSchool('Utah').build(),182 Player.newBuilder().setPosition(Position.S).setName("K'Von Wallace").setTeam(Team.PHI).setAge(23).setSchool('Clemson').build(),183 Player.newBuilder().setPosition(Position.S).setName('Kamren Curl').setTeam(Team.WAS).setAge(21).setSchool('Arkansas').build(),184 Player.newBuilder().setPosition(Position.S).setName('Kenny Robinson Jr.').setTeam(Team.CAR).setAge(21).setSchool('West Virginia').build(),185 Player.newBuilder().setPosition(Position.S).setName('Kyle Dugger').setTeam(Team.NWE).setAge(24).setSchool('').build(),186 Player.newBuilder().setPosition(Position.S).setName("L'Jarius Sneed").setTeam(Team.KAN).setAge(23).setSchool('Louisiana Tech').build(),187 Player.newBuilder().setPosition(Position.S).setName('Tanner Muse').setTeam(Team.LVR).setAge(24).setSchool('Clemson').build(),188 Player.newBuilder().setPosition(Position.S).setName('Terrell Burgess').setTeam(Team.LAR).setAge(21).setSchool('Utah').build(),189 Player.newBuilder().setPosition(Position.S).setName('Vernon Scott').setTeam(Team.GNB).setAge(22).setSchool('TCU').build(),190 Player.newBuilder().setPosition(Position.S).setName('Xavier McKinney').setTeam(Team.NYG).setAge(21).setSchool('Alabama').build(),191 Player.newBuilder().setPosition(Position.T).setName('Andrew Thomas').setTeam(Team.NYG).setAge(21).setSchool('Georgia').build(),192 Player.newBuilder().setPosition(Position.T).setName('Arlington Hambright').setTeam(Team.CHI).setAge(24).setSchool('Colorado').build(),193 Player.newBuilder().setPosition(Position.T).setName('Austin Jackson').setTeam(Team.MIA).setAge(21).setSchool('USC').build(),194 Player.newBuilder().setPosition(Position.T).setName('Blake Brandel').setTeam(Team.MIN).setAge(23).setSchool('Oregon St.').build(),195 Player.newBuilder().setPosition(Position.T).setName('Cameron Clark').setTeam(Team.NYJ).setAge(22).setSchool('Charlotte').build(),196 Player.newBuilder().setPosition(Position.T).setName('Charlie Heck').setTeam(Team.HOU).setAge(23).setSchool('North Carolina').build(),197 Player.newBuilder().setPosition(Position.T).setName('Colton McKivitz').setTeam(Team.SFO).setAge(24).setSchool('West Virginia').build(),198 Player.newBuilder().setPosition(Position.T).setName('Ezra Cleveland').setTeam(Team.MIN).setAge(22).setSchool('Boise St.').build(),199 Player.newBuilder().setPosition(Position.T).setName('Hakeem Adeniji').setTeam(Team.CIN).setAge(22).setSchool('Kansas').build(),200 Player.newBuilder().setPosition(Position.T).setName('Isaiah Wilson').setTeam(Team.TEN).setAge(21).setSchool('Georgia').build(),201 Player.newBuilder().setPosition(Position.T).setName('Jedrick Wills Jr.').setTeam(Team.CLE).setAge(21).setSchool('Alabama').build(),202 Player.newBuilder().setPosition(Position.T).setName('Jon Runyan').setTeam(Team.GNB).setAge(23).setSchool('Michigan').build(),203 Player.newBuilder().setPosition(Position.T).setName('Josh Jones').setTeam(Team.ARI).setAge(23).setSchool('Houston').build(),204 Player.newBuilder().setPosition(Position.T).setName('Justin Herron').setTeam(Team.NWE).setAge(24).setSchool('Wake Forest').build(),205 Player.newBuilder().setPosition(Position.T).setName('Lucas Niang').setTeam(Team.KAN).setAge(22).setSchool('TCU').build(),206 Player.newBuilder().setPosition(Position.T).setName('Matt Peart').setTeam(Team.NYG).setAge(23).setSchool('Connecticut').build(),207 Player.newBuilder().setPosition(Position.T).setName('Mekhi Becton').setTeam(Team.NYJ).setAge(21).setSchool('Louisville').build(),208 Player.newBuilder().setPosition(Position.T).setName('Prince Tega Wanogho').setTeam(Team.PHI).setAge(22).setSchool('Auburn').build(),209 Player.newBuilder().setPosition(Position.T).setName('Saahdiq Charles').setTeam(Team.WAS).setAge(21).setSchool('LSU').build(),210 Player.newBuilder().setPosition(Position.T).setName('Simon Stepaniak').setTeam(Team.GNB).setAge(23).setSchool('Indiana').build(),211 Player.newBuilder().setPosition(Position.T).setName('Tristan Wirfs').setTeam(Team.TAM).setAge(21).setSchool('Iowa').build(),212 Player.newBuilder().setPosition(Position.T).setName('Tyre Phillips').setTeam(Team.BAL).setAge(23).setSchool('Mississippi St.').build(),213 Player.newBuilder().setPosition(Position.TE).setName('Adam Trautman').setTeam(Team.NOR).setAge(23).setSchool('1').build(),214 Player.newBuilder().setPosition(Position.TE).setName('Albert Okwuegbunam').setTeam(Team.DEN).setAge(22).setSchool('Missouri').build(),215 Player.newBuilder().setPosition(Position.TE).setName('Brycen Hopkins').setTeam(Team.LAR).setAge(23).setSchool('Purdue').build(),216 Player.newBuilder().setPosition(Position.TE).setName('Charlie Woerner').setTeam(Team.SFO).setAge(22).setSchool('Georgia').build(),217 Player.newBuilder().setPosition(Position.TE).setName('Colby Parkinson').setTeam(Team.SEA).setAge(21).setSchool('Stanford').build(),218 Player.newBuilder().setPosition(Position.TE).setName('Cole Kmet').setTeam(Team.CHI).setAge(21).setSchool('Notre Dame').build(),219 Player.newBuilder().setPosition(Position.TE).setName('Dalton Keene').setTeam(Team.NWE).setAge(21).setSchool('Virginia Tech').build(),220 Player.newBuilder().setPosition(Position.TE).setName('Devin Asiasi').setTeam(Team.NWE).setAge(23).setSchool('UCLA').build(),221 Player.newBuilder().setPosition(Position.TE).setName('Harrison Bryant').setTeam(Team.CLE).setAge(22).setSchool('Florida Atlantic').build(),222 Player.newBuilder().setPosition(Position.TE).setName('Josiah Deguara').setTeam(Team.GNB).setAge(23).setSchool('Cincinnati').build(),223 Player.newBuilder().setPosition(Position.TE).setName('Stephen Sullivan').setTeam(Team.SEA).setAge(23).setSchool('LSU').build(),224 Player.newBuilder().setPosition(Position.TE).setName('Tyler Davis').setTeam(Team.JAX).setAge(23).setSchool('Georgia Tech').build(),225 Player.newBuilder().setPosition(Position.WR).setName('Antonio Gandy-Golden').setTeam(Team.WAS).setAge(22).setSchool('Liberty').build(),226 Player.newBuilder().setPosition(Position.WR).setName('Brandon Aiyuk').setTeam(Team.SFO).setAge(22).setSchool('Arizona St.').build(),227 Player.newBuilder().setPosition(Position.WR).setName('Bryan Edwards').setTeam(Team.LVR).setAge(21).setSchool('South Carolina').build(),228 Player.newBuilder().setPosition(Position.WR).setName('CeeDee Lamb').setTeam(Team.DAL).setAge(21).setSchool('Oklahoma').build(),229 Player.newBuilder().setPosition(Position.WR).setName('Chase Claypool').setTeam(Team.PIT).setAge(22).setSchool('Notre Dame').build(),230 Player.newBuilder().setPosition(Position.WR).setName('Collin Johnson').setTeam(Team.JAX).setAge(22).setSchool('Texas').build(),231 Player.newBuilder().setPosition(Position.WR).setName('Darnell Mooney').setTeam(Team.CHI).setAge(22).setSchool('Tulane').build(),232 Player.newBuilder().setPosition(Position.WR).setName('Denzel Mims').setTeam(Team.NYJ).setAge(22).setSchool('Baylor').build(),233 Player.newBuilder().setPosition(Position.WR).setName('Devin Duvernay').setTeam(Team.BAL).setAge(22).setSchool('Texas').build(),234 Player.newBuilder().setPosition(Position.WR).setName('Dezmon Patmon').setTeam(Team.IND).setAge(22).setSchool('Washington St.').build(),235 Player.newBuilder().setPosition(Position.WR).setName('Donovan Peoples-Jones').setTeam(Team.CLE).setAge(21).setSchool('Michigan').build(),236 Player.newBuilder().setPosition(Position.WR).setName('Freddie Swain').setTeam(Team.SEA).setAge(22).setSchool('Florida').build(),237 Player.newBuilder().setPosition(Position.WR).setName('Gabriel Davis').setTeam(Team.BUF).setAge(21).setSchool('Central Florida').build(),238 Player.newBuilder().setPosition(Position.WR).setName('Henry Ruggs III').setTeam(Team.LVR).setAge(21).setSchool('Alabama').build(),239 Player.newBuilder().setPosition(Position.WR).setName('Isaiah Coulter').setTeam(Team.HOU).setAge(21).setSchool('').build(),240 Player.newBuilder().setPosition(Position.WR).setName('Isaiah Hodgins').setTeam(Team.BUF).setAge(21).setSchool('Oregon St.').build(),241 Player.newBuilder().setPosition(Position.WR).setName('Jalen Reagor').setTeam(Team.PHI).setAge(21).setSchool('TCU').build(),242 Player.newBuilder().setPosition(Position.WR).setName('James Proche').setTeam(Team.BAL).setAge(23).setSchool('SMU').build(),243 Player.newBuilder().setPosition(Position.WR).setName('Jauan Jennings').setTeam(Team.SFO).setAge(23).setSchool('Tennessee').build(),244 Player.newBuilder().setPosition(Position.WR).setName('Jerry Jeudy').setTeam(Team.DEN).setAge(21).setSchool('Alabama').build(),245 Player.newBuilder().setPosition(Position.WR).setName('Joe Reed').setTeam(Team.LAC).setAge(22).setSchool('Virginia').build(),246 Player.newBuilder().setPosition(Position.WR).setName('John Hightower').setTeam(Team.PHI).setAge(24).setSchool('Boise St.').build(),247 Player.newBuilder().setPosition(Position.WR).setName('Justin Jefferson').setTeam(Team.MIN).setAge(21).setSchool('LSU').build(),248 Player.newBuilder().setPosition(Position.WR).setName('K.J. Hill').setTeam(Team.LAC).setAge(22).setSchool('Ohio St.').build(),249 Player.newBuilder().setPosition(Position.WR).setName('K.J. Osborn').setTeam(Team.MIN).setAge(23).setSchool('Miami (FL)').build(),250 Player.newBuilder().setPosition(Position.WR).setName('KJ Hamler').setTeam(Team.DEN).setAge(21).setSchool('Penn St.').build(),251 Player.newBuilder().setPosition(Position.WR).setName('Laviska Shenault Jr.').setTeam(Team.JAX).setAge(21).setSchool('Colorado').build(),252 Player.newBuilder().setPosition(Position.WR).setName('Lynn Bowden Jr.').setTeam(Team.LVR).setAge(22).setSchool('Kentucky').build(),253 Player.newBuilder().setPosition(Position.WR).setName('Michael Pittman Jr.').setTeam(Team.IND).setAge(22).setSchool('USC').build(),254 Player.newBuilder().setPosition(Position.WR).setName('Quez Watkins').setTeam(Team.PHI).setAge(22).setSchool('Southern Miss').build(),255 Player.newBuilder().setPosition(Position.WR).setName('Quintez Cephus').setTeam(Team.DET).setAge(22).setSchool('Wisconsin').build(),256 Player.newBuilder().setPosition(Position.WR).setName('Tee Higgins').setTeam(Team.CIN).setAge(21).setSchool('Clemson').build(),257 Player.newBuilder().setPosition(Position.WR).setName('Tyler Johnson').setTeam(Team.TAM).setAge(22).setSchool('Minnesota').build(),258 Player.newBuilder().setPosition(Position.WR).setName('Tyrie Cleveland').setTeam(Team.DEN).setAge(22).setSchool('Florida').build(),259 Player.newBuilder().setPosition(Position.WR).setName('Van Jefferson').setTeam(Team.LAR).setAge(24).setSchool('Mississippi').build(),...

Full Screen

Full Screen

commands.js

Source:commands.js Github

copy

Full Screen

1const { SlashCommandBuilder } = require("@discordjs/builders");2module.exports = [3 new SlashCommandBuilder()4 .setName("help")5 .setDescription("Shows all commands."),6 new SlashCommandBuilder()7 .setName("list")8 .setDescription("Shows all available data.")9 .addSubcommand((command) =>10 command11 .setName("games")12 .setDescription("List all games.")13 .addIntegerOption((option) =>14 option15 .setName("platform")16 .setDescription("Platform ID.")17 .setRequired(false)18 )19 .addIntegerOption((option) =>20 option21 .setName("page")22 .setDescription("Page number.")23 .setRequired(false)24 )25 )26 .addSubcommand((command) =>27 command28 .setName("platforms")29 .setDescription("List all platforms.")30 .addIntegerOption((option) =>31 option32 .setName("page")33 .setDescription("Page number.")34 .setRequired(false)35 )36 )37 .addSubcommand((command) =>38 command39 .setName("os")40 .setDescription("List all operating systems.")41 .addIntegerOption((option) =>42 option43 .setName("page")44 .setDescription("Page number.")45 .setRequired(false)46 )47 )48 .addSubcommand((command) =>49 command50 .setName("subgames")51 .setDescription("List all subgames for a game.")52 .addIntegerOption((option) =>53 option.setName("game").setDescription("Game ID.").setRequired(true)54 )55 .addIntegerOption((option) =>56 option57 .setName("page")58 .setDescription("Page number.")59 .setRequired(false)60 )61 ),62 new SlashCommandBuilder()63 .setName("match")64 .setDescription("Match your games with other people.")65 .addStringOption((option) =>66 option67 .setName("users")68 .setDescription("Users you want to match with.")69 .setRequired(true)70 )71 .addIntegerOption((option) =>72 option73 .setName("platform")74 .setDescription("ID of the platform.")75 .setRequired(false)76 )77 .addIntegerOption((option) =>78 option79 .setName("os")80 .setDescription("ID of the operating system.")81 .setRequired(false)82 )83 .addBooleanOption((option) =>84 option85 .setName("free")86 .setDescription("Match only free games.")87 .setRequired(false)88 ),89 new SlashCommandBuilder()90 .setName("my")91 .setDescription("Manage your account.")92 .addSubcommandGroup((group) =>93 group94 .setName("games")95 .setDescription("Manage your games.")96 .addSubcommand((command) =>97 command.setName("list").setDescription("List all your games.")98 )99 .addSubcommand((command) =>100 command101 .setName("add")102 .setDescription("Add a game.")103 .addStringOption((option) =>104 option105 .setName("id")106 .setDescription(107 "ID of the game you want to add. (You can separate ids with a comma.)"108 )109 .setRequired(true)110 )111 )112 .addSubcommand((command) =>113 command114 .setName("remove")115 .setDescription("Remove a game.")116 .addStringOption((option) =>117 option118 .setName("id")119 .setDescription(120 "ID of the game you want to remove. (You can separate ids with a comma.)"121 )122 .setRequired(true)123 )124 )125 )126 .addSubcommandGroup((group) =>127 group128 .setName("subgames")129 .setDescription("Manage your subgames.")130 .addSubcommand((command) =>131 command132 .setName("list")133 .setDescription("List all your subgames.")134 .addIntegerOption((option) =>135 option136 .setName("game")137 .setDescription("Game ID.")138 .setRequired(true)139 )140 )141 .addSubcommand((command) =>142 command143 .setName("add")144 .setDescription("Add a subgame.")145 .addStringOption((option) =>146 option147 .setName("id")148 .setDescription(149 "ID of the subgame you want to add. (You can separate ids with a comma.)"150 )151 .setRequired(true)152 )153 )154 .addSubcommand((command) =>155 command156 .setName("remove")157 .setDescription("Remove a subgame.")158 .addStringOption((option) =>159 option160 .setName("id")161 .setDescription(162 "ID of the subgame you want to remove. (You can separate ids with a comma.)"163 )164 .setRequired(true)165 )166 )167 )168 .addSubcommandGroup((group) =>169 group170 .setName("os")171 .setDescription("Manage your operating systems.")172 .addSubcommand((command) =>173 command174 .setName("list")175 .setDescription("List all your operating systems.")176 )177 .addSubcommand((command) =>178 command179 .setName("add")180 .setDescription("Add an operating system.")181 .addIntegerOption((option) =>182 option183 .setName("id")184 .setDescription("ID of the operating system you want to add.")185 .setRequired(true)186 )187 )188 .addSubcommand((command) =>189 command190 .setName("remove")191 .setDescription("Remove an operating system.")192 .addIntegerOption((option) =>193 option194 .setName("id")195 .setDescription(196 "ID of the operating system you want to remove."197 )198 .setRequired(true)199 )200 )201 .addSubcommand((command) =>202 command203 .setName("default")204 .setDescription("Set an operating system as default.")205 .addIntegerOption((option) =>206 option207 .setName("id")208 .setDescription(209 "ID of the operating system you want to set as default. (0 to set to none)"210 )211 .setRequired(true)212 )213 )214 )215 .addSubcommandGroup((group) =>216 group217 .setName("platforms")218 .setDescription("Manage your platforms.")219 .addSubcommand((command) =>220 command.setName("list").setDescription("List all your platforms.")221 )222 .addSubcommand((command) =>223 command224 .setName("add")225 .setDescription("Add a platform.")226 .addIntegerOption((option) =>227 option228 .setName("id")229 .setDescription("ID of the platform you want to add.")230 .setRequired(true)231 )232 )233 .addSubcommand((command) =>234 command235 .setName("remove")236 .setDescription("Remove a platform.")237 .addIntegerOption((option) =>238 option239 .setName("id")240 .setDescription("ID of the platform you want to remove.")241 .setRequired(true)242 )243 )244 .addSubcommand((command) =>245 command246 .setName("default")247 .setDescription("Set a platform as default.")248 .addIntegerOption((option) =>249 option250 .setName("id")251 .setDescription(252 "ID of the platform you want to set as default. (0 to set to none)"253 )254 .setRequired(true)255 )256 )257 )258 .addSubcommandGroup((group) =>259 group260 .setName("steam")261 .setDescription("Manage your steam accounts.")262 .addSubcommand((command) =>263 command264 .setName("accounts")265 .setDescription("List your steam accounts.")266 )267 .addSubcommand((command) =>268 command269 .setName("add")270 .setDescription("Add a steam account.")271 .addStringOption((option) =>272 option273 .setName("url")274 .setDescription(275 "URL of your steam account. (Example: https://steamcommunity.com/id/NAME)"276 )277 .setRequired(true)278 )279 )280 .addSubcommand((command) =>281 command282 .setName("remove")283 .setDescription("Remove a steam account.")284 .addStringOption((option) =>285 option286 .setName("url")287 .setDescription(288 "URL of your steam account. (Example: https://steamcommunity.com/id/NAME)"289 )290 .setRequired(true)291 )292 )293 ),294 new SlashCommandBuilder()295 .setName("admin")296 .setDescription("Manage the bot.")297 .addSubcommandGroup((group) =>298 group299 .setName("user")300 .setDescription("Manage users.")301 .addSubcommand((command) =>302 command303 .setName("addgames")304 .setDescription("Add games to an user.")305 .addUserOption((option) =>306 option307 .setName("user")308 .setDescription("User you want to add games to.")309 .setRequired(true)310 )311 .addStringOption((option) =>312 option313 .setName("games")314 .setDescription(315 "Games you want to add to the user. (You can separate ids with a comma.)"316 )317 .setRequired(true)318 )319 )320 .addSubcommand((command) =>321 command322 .setName("removegames")323 .setDescription("Remove games from an user.")324 .addUserOption((option) =>325 option326 .setName("user")327 .setDescription("User you want to remove games from.")328 .setRequired(true)329 )330 .addStringOption((option) =>331 option332 .setName("games")333 .setDescription(334 "Games you want to remove from the user. (You can separate ids with a comma.)"335 )336 .setRequired(true)337 )338 )339 .addSubcommand((command) =>340 command341 .setName("addsubgames")342 .setDescription("Add subgames to an user.")343 .addUserOption((option) =>344 option345 .setName("user")346 .setDescription("User you want to add subgames to.")347 .setRequired(true)348 )349 .addStringOption((option) =>350 option351 .setName("subgames")352 .setDescription(353 "Subgames you want to add to the user. (You can separate ids with a comma.)"354 )355 .setRequired(true)356 )357 )358 .addSubcommand((command) =>359 command360 .setName("removesubgames")361 .setDescription("Remove subgames from an user.")362 .addUserOption((option) =>363 option364 .setName("user")365 .setDescription("User you want to remove subgames from.")366 .setRequired(true)367 )368 .addStringOption((option) =>369 option370 .setName("subgames")371 .setDescription(372 "Subgames you want to remove from the user. (You can separate ids with a comma.)"373 )374 .setRequired(true)375 )376 )377 .addSubcommand((command) =>378 command379 .setName("addplatfrom")380 .setDescription("Add a platform to an user.")381 .addUserOption((option) =>382 option383 .setName("user")384 .setDescription("User you want to add a platform to.")385 .setRequired(true)386 )387 .addIntegerOption((option) =>388 option389 .setName("platform")390 .setDescription("Platform you want to add to the user.")391 .setRequired(true)392 )393 )394 .addSubcommand((command) =>395 command396 .setName("removeplatfrom")397 .setDescription("Remove a platform from an user.")398 .addUserOption((option) =>399 option400 .setName("user")401 .setDescription("User you want to remove a platform from.")402 .setRequired(true)403 )404 .addIntegerOption((option) =>405 option406 .setName("platform")407 .setDescription("Platform you want to remove from the user.")408 .setRequired(true)409 )410 )411 .addSubcommand((command) =>412 command413 .setName("defaultplatfrom")414 .setDescription("Set a default platform for an user.")415 .addUserOption((option) =>416 option417 .setName("user")418 .setDescription("User you want to set a default platform to.")419 .setRequired(true)420 )421 .addIntegerOption((option) =>422 option423 .setName("platform")424 .setDescription("Platform you want to set as default.")425 .setRequired(true)426 )427 )428 .addSubcommand((command) =>429 command430 .setName("addos")431 .setDescription("Add an OS to an user.")432 .addUserOption((option) =>433 option434 .setName("user")435 .setDescription("User you want to add an OS to.")436 .setRequired(true)437 )438 .addIntegerOption((option) =>439 option440 .setName("os")441 .setDescription("OS you want to add to the user.")442 .setRequired(true)443 )444 )445 .addSubcommand((command) =>446 command447 .setName("removeos")448 .setDescription("Remove an OS from an user.")449 .addUserOption((option) =>450 option451 .setName("user")452 .setDescription("User you want to remove an OS from.")453 .setRequired(true)454 )455 .addIntegerOption((option) =>456 option457 .setName("os")458 .setDescription("OS you want to remove from the user.")459 .setRequired(true)460 )461 )462 .addSubcommand((command) =>463 command464 .setName("defaultos")465 .setDescription("Set a default OS for an user.")466 .addUserOption((option) =>467 option468 .setName("user")469 .setDescription("User you want to set a default OS to.")470 .setRequired(true)471 )472 .addIntegerOption((option) =>473 option474 .setName("os")475 .setDescription("OS you want to set as default.")476 .setRequired(true)477 )478 )479 .addSubcommand((command) =>480 command481 .setName("addsteam")482 .setDescription("Add a steam account to an user.")483 .addUserOption((option) =>484 option485 .setName("user")486 .setDescription("User you want to add a steam account to.")487 .setRequired(true)488 )489 .addStringOption((option) =>490 option491 .setName("url")492 .setDescription(493 "URL of the steam account. (Example: https://steamcommunity.com/id/NAME)"494 )495 .setRequired(true)496 )497 )498 .addSubcommand((command) =>499 command500 .setName("removesteam")501 .setDescription("Remove a steam account from an user.")502 .addUserOption((option) =>503 option504 .setName("user")505 .setDescription("User you want to remove a steam account from.")506 .setRequired(true)507 )508 .addStringOption((option) =>509 option510 .setName("url")511 .setDescription(512 "URL of the steam account. (Example: https://steamcommunity.com/id/NAME)"513 )514 .setRequired(true)515 )516 )517 )518 .addSubcommandGroup((group) =>519 group520 .setName("platforms")521 .setDescription("Manage platforms.")522 .addSubcommand((command) =>523 command524 .setName("add")525 .setDescription("Add a platform.")526 .addStringOption((option) =>527 option528 .setName("name")529 .setDescription("Name of the platform.")530 .setRequired(true)531 )532 )533 .addSubcommand((command) =>534 command535 .setName("remove")536 .setDescription("Remove a platform.")537 .addIntegerOption((option) =>538 option539 .setName("id")540 .setDescription("ID of the platform.")541 .setRequired(true)542 )543 )544 )545 .addSubcommandGroup((group) =>546 group547 .setName("os")548 .setDescription("Manage operating systems.")549 .addSubcommand((command) =>550 command551 .setName("add")552 .setDescription("Add an OS.")553 .addStringOption((option) =>554 option555 .setName("name")556 .setDescription("Name of the OS.")557 .setRequired(true)558 )559 )560 .addSubcommand((command) =>561 command562 .setName("remove")563 .setDescription("Remove an OS.")564 .addIntegerOption((option) =>565 option566 .setName("id")567 .setDescription("ID of the OS.")568 .setRequired(true)569 )570 )571 )572 .addSubcommandGroup((group) =>573 group574 .setName("games")575 .setDescription("Manage games.")576 .addSubcommand((command) =>577 command578 .setName("add")579 .setDescription("Add a game.")580 .addStringOption((option) =>581 option582 .setName("name")583 .setDescription("Name of the game.")584 .setRequired(true)585 )586 .addIntegerOption((option) =>587 option588 .setName("players")589 .setDescription(590 "How many players can play at the same time? (0 for unlimited)"591 )592 .setRequired(true)593 )594 .addIntegerOption((option) =>595 option596 .setName("platform")597 .setDescription("Platform of the game.")598 .setRequired(false)599 )600 .addIntegerOption((option) =>601 option602 .setName("os")603 .setDescription("OS of the game.")604 .setRequired(false)605 )606 .addBooleanOption((option) =>607 option608 .setName("free")609 .setDescription("Is the game free?")610 .setRequired(false)611 )612 .addBooleanOption((option) =>613 option614 .setName("crossplatform")615 .setDescription("Is the game cross platform compatible?")616 .setRequired(false)617 )618 )619 .addSubcommand((command) =>620 command621 .setName("remove")622 .setDescription("Remove a game.")623 .addIntegerOption((option) =>624 option625 .setName("id")626 .setDescription("ID of the game.")627 .setRequired(true)628 )629 )630 )631 .addSubcommandGroup((group) =>632 group633 .setName("subgames")634 .setDescription("Manage subgames.")635 .addSubcommand((command) =>636 command637 .setName("add")638 .setDescription("Add a subgame.")639 .addIntegerOption((option) =>640 option641 .setName("game")642 .setDescription("ID of game.")643 .setRequired(true)644 )645 .addStringOption((option) =>646 option647 .setName("name")648 .setDescription("Name of the subgame.")649 .setRequired(true)650 )651 .addIntegerOption((option) =>652 option653 .setName("players")654 .setDescription(655 "How many players can play at the same time? (0 for unlimited)"656 )657 .setRequired(true)658 )659 .addBooleanOption((option) =>660 option661 .setName("free")662 .setDescription("Is the game free?")663 .setRequired(false)664 )665 )666 .addSubcommand((command) =>667 command668 .setName("remove")669 .setDescription("Remove a subgame.")670 .addIntegerOption((option) =>671 option672 .setName("id")673 .setDescription("ID of the subgame.")674 .setRequired(true)675 )676 )677 ),678 new SlashCommandBuilder()679 .setName("cleardata")680 .setDescription("Clear all data connected to your account."),...

Full Screen

Full Screen

icon.js

Source:icon.js Github

copy

Full Screen

1/**2 * @file3 * GIcon manager for GMap.4 * Required for markers to operate properly.5 */6/*global jQuery, Drupal, GIcon, GPoint, GSize, G_DEFAULT_ICON */7/**8 * Get the GIcon corresponding to a setname / sequence.9 * There is only one GIcon for each slot in the sequence.10 * The marker set wraps around when reaching the end of the sequence.11 * @@@ TODO: Move this directly into the preparemarker event binding.12 */13Drupal.gmap.getIcon = function (setname, sequence) {14 var othimg = ['printImage', 'mozPrintImage', 'printShadow', 'transparent'];15 // If no setname, return google's default icon.16 if (!setname) {17 return;18 }19 if (!this.gicons) {20 this.gicons = {};21 }22 if (!this.gshadows) {23 this.gshadows = {};24 }25 // If no sequence, synthesise one.26 if (!sequence) {27 // @TODO make this per-map.28 if (!this.sequences) {29 this.sequences = {};30 }31 if (!this.sequences[setname]) {32 this.sequences[setname] = -1;33 }34 this.sequences[setname]++;35 sequence = this.sequences[setname];36 }37 if (!this.gicons[setname]) {38 if (!Drupal.gmap.icons[setname]) {39 alert('Request for invalid marker set ' + setname + '!');40 }41 this.gicons[setname] = [];42 this.gshadows[setname] = [];43 var q = Drupal.gmap.icons[setname];44 var p, t;45 for (var i = 0; i < q.sequence.length; i++) {46 /*47 t = new GIcon();48 p = q.path;49 t.image = p + q.sequence[i].f;50 if (q.shadow.f !== '') {51 t.shadow = p + q.shadow.f;52 t.shadowSize = new GSize(q.shadow.w, q.shadow.h);53 }54 t.iconSize = new GSize(q.sequence[i].w, q.sequence[i].h);55 t.iconAnchor = new GPoint(q.anchorX, q.anchorY);56 t.infoWindowAnchor = new GPoint(q.infoX, q.infoY);57 */58 p = Drupal.settings.basePath + Drupal.settings.pathPrefix + q.path;59 t = new google.maps.MarkerImage(p + q.sequence[i].f,60 new google.maps.Size(q.sequence[i].w, q.sequence[i].h),61 null,62 new google.maps.Point(q.anchorX, q.anchorY)63 );64 if (q.shadow.f !== '') {65 this.gshadows[setname][i] = new google.maps.MarkerImage(p + q.shadow.f,66 new google.maps.Size(q.shadow.w, q.shadow.h),67 null,68 new google.maps.Point(q.anchorX, q.anchorY)69 );70 }71 else {72 this.gshadows[setname][i] = null;73 }74 for (var j = 0; j < othimg.length; j++) {75 if (q[othimg[j]] !== '') {76 t[othimg[j]] = p + q[othimg[j]];77 }78 }79 // @@@ imageMap?80 this.gicons[setname][i] = t;81 }82 delete Drupal.gmap.icons[setname];83 }84 // TODO: Random, other cycle methods.85 return this.gicons[setname][sequence % this.gicons[setname].length];86};87Drupal.gmap.getShadow = function (setname, sequence) {88 if (this.gshadows) return this.gshadows[setname][sequence % this.gicons[setname].length];89};90/**91 * JSON callback to set up the icon defs.92 * When doing the JSON call, the data comes back in a packed format.93 * We need to expand it and file it away in a more useful format.94 */95Drupal.gmap.iconSetup = function () {96 Drupal.gmap.icons = {};97 var m = Drupal.gmap.icondata;98 var filef, filew, fileh, files;99 for (var path in m) {100 if (m.hasOwnProperty(path)) {101 // Reconstitute files array102 filef = m[path].f;103 filew = Drupal.gmap.expandArray(m[path].w, filef.length);104 fileh = Drupal.gmap.expandArray(m[path].h, filef.length);105 files = [];106 for (var i = 0; i < filef.length; i++) {107 files[i] = {f: filef[i], w: filew[i], h: fileh[i]};108 }109 for (var ini in m[path].i) {110 if (m[path].i.hasOwnProperty(ini)) {111 jQuery.extend(Drupal.gmap.icons, Drupal.gmap.expandIconDef(m[path].i[ini], path, files));112 }113 }114 }115 }116};117/**118 * Expand a compressed array.119 * This will pad arr up to len using the last value of the old array.120 */121Drupal.gmap.expandArray = function (arr, len) {122 var d = arr[0];123 for (var i = 0; i < len; i++) {124 if (!arr[i]) {125 arr[i] = d;126 }127 else {128 d = arr[i];129 }130 }131 return arr;132};133/**134 * Expand icon definition.135 * This helper function is the reverse of the packer function found in136 * gmap_markerinfo.inc.137 */138Drupal.gmap.expandIconDef = function (c, path, files) {139 var decomp = ['key', 'name', 'sequence', 'anchorX', 'anchorY', 'infoX',140 'infoY', 'shadow', 'printImage', 'mozPrintImage', 'printShadow',141 'transparent'];142 var fallback = ['', '', [], 0, 0, 0, 0, {f: '', h: 0, w: 0}, '', '', '', ''];143 var imagerep = ['shadow', 'printImage', 'mozPrintImage', 'printShadow',144 'transparent'];145 var defaults = {};146 var sets = [];147 var i, j;148 // Part 1: Defaults / Markersets149 // Expand arrays and fill in missing ones with fallbacks150 for (i = 0; i < decomp.length; i++) {151 if (!c[0][i]) {152 c[0][i] = [ fallback[i] ];153 }154 c[0][i] = Drupal.gmap.expandArray(c[0][i], c[0][0].length);155 }156 for (i = 0; i < c[0][0].length; i++) {157 for (j = 0; j < decomp.length; j++) {158 if (i === 0) {159 defaults[decomp[j]] = c[0][j][i];160 }161 else {162 if (!sets[i - 1]) {163 sets[i - 1] = {};164 }165 sets[i - 1][decomp[j]] = c[0][j][i];166 }167 }168 }169 for (i = 0; i < sets.length; i++) {170 for (j = 0; j < decomp.length; j++) {171 if (sets[i][decomp[j]] === fallback[j]) {172 sets[i][decomp[j]] = defaults[decomp[j]];173 }174 }175 }176 var icons = {};177 for (i = 0; i < sets.length; i++) {178 var key = sets[i].key;179 icons[key] = sets[i];180 icons[key].path = path;181 delete icons[key].key;182 delete sets[i];183 for (j = 0; j < icons[key].sequence.length; j++) {184 icons[key].sequence[j] = files[icons[key].sequence[j]];185 }186 for (j = 0; j < imagerep.length; j++) {187 if (typeof(icons[key][imagerep[j]]) === 'number') {188 icons[key][imagerep[j]] = files[icons[key][imagerep[j]]];189 }190 }191 }192 return icons;193};194/**195 * We attach ourselves if we find a map somewhere needing markers.196 * Note: Since we broadcast our ready event to all maps, it doesn't197 * matter which one we attached to!198 */199Drupal.gmap.addHandler('gmap', function (elem) {200 var obj = this;201 obj.bind('init', function () {202 // Only expand once.203 if (!Drupal.gmap.icons) {204 Drupal.gmap.iconSetup();205 }206 });207 obj.bind('ready', function () {208 // Compatibility event.209 if (Drupal.gmap.icondata) {210 obj.deferChange('iconsready', -1);211 }212 });213 if (!obj.vars.behavior.customicons) {214 // Provide icons to markers.215 obj.bind('preparemarker', function (marker) {216 marker.opts.icon = Drupal.gmap.getIcon(marker.markername, marker.offset);217 marker.opts.shadow = Drupal.gmap.getShadow(marker.markername, marker.offset);218 });219 }...

Full Screen

Full Screen

securityenvironment.js

Source:securityenvironment.js Github

copy

Full Screen

...78 */79SecurityEnvironment.prototype.add = function(tlv) {80 switch(tlv.tag) {81 case 0xA4:82 tlv.setName("AT");83 break;84 case 0xA6:85 tlv.setName("KAT");86 break;87 case 0xAA:88 tlv.setName("HT");89 break;90 case 0xB4:91 tlv.setName("CCT");92 break;93 case 0xB6:94 tlv.setName("DST");95 break;96 case 0xB8:97 tlv.setName("CT");98 break;99 default:100 throw new GPError("SecurityEnvironment", GPError.INVALID_DATA, tlv.tag, "Invalid tag for CRT");101 }102 this.addElements(tlv.name, tlv);103}104105106107/**108 * Return textual representation of security environment container109 */110SecurityEnvironment.prototype.toString = function() {111 var str = "";112 113 if (this.t.AT) {114 str += "Authentication Template (AT)\n" + this.t.AT;115 }116 if (this.t.KAT) {117 str += "Key Agreement Template (KAT)\n" + this.t.KAT;118 }119 if (this.t.HT) {120 str += "Hash Template (HT)\n" + this.t.HT;121 }122 if (this.t.CCT) {123 str += "Cryptographic Checksum Template (CCT)\n" + this.t.CCT;124 }125 if (this.t.DST) {126 str += "Digital Signature Template (DST)\n" + this.t.DST;127 }128 if (this.t.CT) {129 str += "Confidentiality Template (CT)\n" + this.t.CT;130 }131 return str; 132} 133134135136/**137 * Decorates a tlv object from the CRT138 */139SecurityEnvironment.decorateCRT = function(asn1) {140 switch(asn1.tag) {141 case 0x80:142 asn1.setName("cryptographicMechanism 80");143 break;144 case 0x81:145 asn1.setName("fileIdentifierOrPath 81");146 break;147 case 0x82:148 asn1.setName("dFName 82");149 break;150 case 0x83:151 asn1.setName("secretOrPublicKeyReference 83");152 break;153 case 0x84:154 asn1.setName("sessionOrPrivateKeyReference 84");155 break;156 case 0x85:157 asn1.setName("nullBlock 85");158 break;159 case 0x86:160 asn1.setName("chainingBlock 86");161 break;162 case 0x87:163 asn1.setName("initialBlock 87");164 break;165 case 0x88:166 asn1.setName("previousChallenge 88");167 break;168 case 0x89:169 asn1.setName("proprietaryDataElementIndex 89");170 break;171 case 0x8A:172 asn1.setName("proprietaryDataElementIndex 8A");173 break;174 case 0x8B:175 asn1.setName("proprietaryDataElementIndex 8B");176 break;177 case 0x8C:178 asn1.setName("proprietaryDataElementIndex 8C");179 break;180 case 0x8D:181 asn1.setName("proprietaryDataElementIndex 8D");182 break;183 case 0x90:184 asn1.setName("cardHashCode 90");185 break;186 case 0x91:187 asn1.setName("ephemeralPublicKey 91");188 break;189 case 0x92:190 asn1.setName("cardTimeStamp 92");191 break;192 case 0x93:193 asn1.setName("dsiCounter 93");194 break;195 case 0x94:196 asn1.setName("challengeOrDerivationParameter 94");197 break;198 case 0x95:199 asn1.setName("usageQualifier 95");200 break;201 case 0x8E:202 asn1.setName("cryptographicContentReference 8E");203 break;204 case 0x67:205 asn1.setName("auxiliaryAuthenticatedData 67");206 break;207 case 0x67:208 asn1.setName("auxiliaryAuthenticatedData 67");209 break;210 case 0x7F4C:211 asn1.setName("certificateHolderAuthorisationTemplate 7F4C");212 break;213 } ...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const pact = require('pact-foundation-pact');2pact.setName('test2');3const pact = require('pact-foundation-pact');4pact.setName('test3');5const pact = require('pact-foundation-pact');6pact.setName('test4');7const pact = require('pact-foundation-pact');8pact.setName('test5');9const pact = require('pact-foundation-pact');10pact.setName('test6');11const pact = require('pact-foundation-pact');12pact.setName('test7');13const pact = require('pact-foundation-pact');14pact.setName('test8');15const pact = require('pact-foundation-pact');16pact.setName('test9');17const pact = require('pact-foundation-pact');18pact.setName('test10');19const pact = require('pact-foundation-pact');20pact.setName('test11');21const pact = require('pact-foundation-pact');22pact.setName('test12');23const pact = require('pact-foundation-pact');24pact.setName('test13');25const pact = require('pact-foundation-pact');26pact.setName('test14');

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run pact-foundation-pact automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful