1 | const Discord = require("discord.js");
|
2 | const pg3dautocorrect = require("pg3d-autocorrect")()
|
3 | const guns = require("./guns.js")
|
4 |
|
5 | exports.gun = function(toFind = '') {
|
6 | toFind = toFind.toLowerCase();
|
7 |
|
8 | let target = pg3dautocorrect(toFind)
|
9 |
|
10 | if (target === 'exterminator') { target = guns.exterminator; }
|
11 | if (target === 'prototype') { target = guns.prototype; }
|
12 | if (target === 'laserbouncer') { target = guns.laserbouncer; }
|
13 | if (target === 'ultimatum') { target = guns.ultimatum; }
|
14 | if (target === 'antichampionrifle') { target = guns.antichampionrifle; }
|
15 | if (target === 'reflector') { target = guns.reflector; }
|
16 | if (target === 'thunderer') { target = guns.thunderer; }
|
17 | if (target === 'harshpunisher') { target = guns.harshpunisher; }
|
18 | if (target === 'killerchord') { target = guns.killerchord; }
|
19 | if (target === 'primalcold') { target = guns.primalcold; }
|
20 | if (target === 'succubus') { target = guns.succubus; }
|
21 | if (target === 'viking') { target = guns.viking; }
|
22 | if (target === 'acidshotgun') { target = guns.acidshotgun; }
|
23 | if (target === 'disguisedrifle') { target = guns.disguisedrifle; }
|
24 | if (target === 'lasercycler') { target = guns.lasercycler; }
|
25 | if (target === 'prototypes') { target = guns.prototypes; }
|
26 | if (target === 'solarflare') { target = guns.solarflare; }
|
27 | if (target === 'pixelgun') { target = guns.pixelgun; }
|
28 | if (target === 'machinegun') { target = guns.machinegun; }
|
29 | if (target === 'shotgun') { target = guns.shotgun; }
|
30 | if (target === 'lastkiss') { target = guns.lastkiss; }
|
31 | if (target === 'oxbadcode') { target = guns.oxbadcode; }
|
32 | if (target === 'signalpistol') { target = guns.signalpistol; }
|
33 | if (target === 'combatknife') { target = guns.combatknife; }
|
34 | if (target === 'flamethrower') { target = guns.flamethrower; }
|
35 | return target;
|
36 | }
|