This commit is contained in:
@ -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",
|
||||
|
3
index.js
3
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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user