When using UserBots to simulate commands, they sometimes cause the Client to change the user's id to false (and itself to true).
I suspect it may be some issue with Collectors, as the problem only appears when they are created. However, I have no explanation as to why it only breaks with UserBots and not manual testing.
It seems that the ids break until the bot is restarted - deleting Users from the cache and re-fetching them do not work.
It doesn't appear to be any "timing" issue - even after waiting for 5 secs before each button press, error still appears.
When testing the game function, the ids work up to the commented point. However, when the "1" and "7" inputs are sent using sendMessage, it breaks. Somehow, manually typing in 1 and 7 in the chrome client works.
Actually, even if the "1" input is sent with sendMessage, manually typing 7 works, while sendMessage does not.
When using UserBots to simulate commands, they sometimes cause the Client to change the user's id to false (and itself to true).
I suspect it may be some issue with Collectors, as the problem only appears when they are created. However, I have no explanation as to why it only breaks with UserBots and not manual testing.
It seems that the ids break until the bot is restarted - deleting Users from the cache and re-fetching them do not work.
It doesn't appear to be any "timing" issue - even after waiting for 5 secs before each button press, error still appears.
When testing the game function, the ids work up to the commented point. However, when the "1" and "7" inputs are sent using sendMessage, it breaks. Somehow, manually typing in 1 and 7 in the chrome client works.
Actually, even if the "1" input is sent with sendMessage, manually typing 7 works, while sendMessage does not.
`
const { l } = require("@root/emojiCharacters"); const client = new MatthewClient(config, true); const UserBot = require("@userBot"); const setup = require("@testSetup"); const BOT_COUNT = 2;
(async () => { bots = await setup(client, BOT_COUNT); client.testChannel = await client.testGuild.channels.fetch("720351714791915523")
/*
})();
`
??????
await bots[0].sendMessage("7") DOES NOT AFFECT THE CLIENT IN ANY WAY???? IT IS JUST A PUPPETEER SCRIPT?