This commit is contained in:
@ -33,7 +33,7 @@ const priceTable = [
|
|||||||
prices: ["980;5", "1050;15", "1100;40", "1150;70", "1200;500"],
|
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",
|
returnKeyWord: "apprentice builder piece",
|
||||||
prices: [
|
prices: [
|
||||||
"2000;25",
|
"2000;25",
|
||||||
|
3
index.js
3
index.js
@ -41,7 +41,7 @@ client.once(Events.ClientReady, async (readyClient) => {
|
|||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
|
|
||||||
client.usersToReactTo = data.map((entry) => {
|
client.usersToReactTo = data.map((entry) => {
|
||||||
const [userId, emoji] = entry.split(":");
|
const [userId, emoji] = entry.split("|");
|
||||||
return { userId, emoji };
|
return { userId, emoji };
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@ -61,6 +61,7 @@ client.on(Events.MessageCreate, async (message) => {
|
|||||||
try {
|
try {
|
||||||
await message.react(item.emoji);
|
await message.react(item.emoji);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
message.channel.send("FAILED TO REACT TO MESSAGE! " + err);
|
||||||
console.error("Failed to react to message:", err);
|
console.error("Failed to react to message:", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user