feat: discord bot scanning messages

This commit is contained in:
GramingFoxTeam
2022-11-15 22:21:35 +03:00
parent bd2994388b
commit d1bd3b2b7e
4 changed files with 40 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ global.ft = ft;
const server = createServer(async (client) => {
client.on('data', async (data) => {
const eventData = deserialize(data);
const eventData = deserialize(data, { allowObjectSmallerThanBufferSize: true });
switch(eventData.op) {
case 1: {