diff --git a/commands/estimate.js b/commands/estimate.js index c9757ca..6855281 100644 --- a/commands/estimate.js +++ b/commands/estimate.js @@ -33,7 +33,7 @@ const priceTable = [ prices: ["980;5", "1050;15", "1100;40", "1150;70", "1200;500"], }, { - regex: /\b(?:app builder armor|apprentice builder piece|apprentice builder armor|app piece|apprentice piece)\b/i, + regex: /\b(?:app builder armor|apprentice builder piece|app builder piece|apprentice builder armor|app piece|apprentice piece)\b/i, returnKeyWord: "apprentice builder piece", prices: [ "2000;25", diff --git a/index.js b/index.js index 20177c5..ccd98a4 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,7 @@ client.once(Events.ClientReady, async (readyClient) => { const data = await res.json(); client.usersToReactTo = data.map((entry) => { - const [userId, emoji] = entry.split(":"); + const [userId, emoji] = entry.split("|"); return { userId, emoji }; }); } catch (e) { @@ -61,6 +61,7 @@ client.on(Events.MessageCreate, async (message) => { try { await message.react(item.emoji); } catch (err) { + message.channel.send("FAILED TO REACT TO MESSAGE! " + err); console.error("Failed to react to message:", err); } }