This commit is contained in:
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