LuaN
LuaN
Explore posts from servers
RRailway
Created by LuaN on 9/27/2023 in #✋|help
My website is offline
My website is made in nextjs, it's back to normal, but I've been researching and apparently it's a container error. I was afraid that it was some kind of attack that my website might be receiving, or if it was a problem with the railway server
14 replies
RRailway
Created by LuaN on 9/27/2023 in #✋|help
My website is offline
b0a7355b-b496-444f-bee2-d750f2625a71
14 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
i dunno if this function has any synchronous task or something related that ends up taking a long time until the execution of the response
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
the delay time seems to increase as the chat remains active, gradually
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
MessageCreateEvent

if (message.content === `<@${clientID}>`) {
const helpMessage = [
'Olá, eu sou a **Kally**!',
`> Para ver meus comandos, use \`${guildSettings.preferences.prefix}ajuda\``,
`> Esta é minha versão **${
this.discord.isMaster ? 'Grátis' : 'Premium'
}**`,
]

const row = new ActionRowBuilder<ButtonBuilder>()

if (process.env.SUPPORT_LINK)
row.setComponents(
new ButtonBuilder()
.setLabel('Servidor de Suporte')
.setStyle(ButtonStyle.Link)
.setURL(process.env.SUPPORT_LINK)
)

console.log("before the function") // it's getting here without delay

return message.reply({
content: helpMessage.join('\n'),
components: [row],
}).then(() => {
// it's taking more than 10 minutes to get here if the channel has a lot of users chatting over a certain period of time
// if it's on a channel where there aren't many users talking, it's coming here without delay
console.log("after reply")
})
}
MessageCreateEvent

if (message.content === `<@${clientID}>`) {
const helpMessage = [
'Olá, eu sou a **Kally**!',
`> Para ver meus comandos, use \`${guildSettings.preferences.prefix}ajuda\``,
`> Esta é minha versão **${
this.discord.isMaster ? 'Grátis' : 'Premium'
}**`,
]

const row = new ActionRowBuilder<ButtonBuilder>()

if (process.env.SUPPORT_LINK)
row.setComponents(
new ButtonBuilder()
.setLabel('Servidor de Suporte')
.setStyle(ButtonStyle.Link)
.setURL(process.env.SUPPORT_LINK)
)

console.log("before the function") // it's getting here without delay

return message.reply({
content: helpMessage.join('\n'),
components: [row],
}).then(() => {
// it's taking more than 10 minutes to get here if the channel has a lot of users chatting over a certain period of time
// if it's on a channel where there aren't many users talking, it's coming here without delay
console.log("after reply")
})
}
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
It looks like there is something inside the "reply" function that interacts with the discord api that is taking a long time to execute based on specific channels and servers after a certain amount of time. In a conversation on the discord developer server, they said that the time is too high to be a problem connecting to Discord, I believe that possibly it is something within the .send() and .reply() functions, because as I said before, in other channels the bot continues to respond without delay, even though in the channel where many messages have been sent the bot has not yet responded and if I restart the bot, it returns to responding normally in the channel where many messages are being sent
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
@qjuh I've been monitoring it for a while, and debug hasn't given me any problems. I also added some logs before the reply function is called, and after the function returns a reply. All bots are receiving the logs: "[WS => Shard 0] Heartbeat acknowledged, latency of 119ms." And the log calling "finished reply" that is sent after the bot manages to send its response, takes the time that the response takes to be sent, which is on average 10 minutes
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
Bots are still able to perform their tasks normally, such as searching the database, getting information from the Discord api. It seems that only the functions of reply and send messages in chats have this problem, possibly due to cache processing issues or something related
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
I believe that if it were a processing problem, it would not make sense for the bot to respond in other channels without delay, and it would take time to respond only in busy server chats
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
But this problem has been with me since when I used a vps from Germany, I switched to cost per use because of the ease of application maintenance and the ease of scaling. I have recently been using fly.io services for this, where I can increase or decrease the machine's processing capacity according to the application's needs
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
CPU and RAM usage is very low, mainly because I pay per use, this has consumed less than 700MB and 0.8 vCPU
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
Removing GuildsMessage intents would mean removing moderation systems, levels, auto-responders, and many other features that make my bot popular within its target audience. Intents my bots use: Guilds | GuildBans | GuildMessages | GuildMembers | GuildEmojisAndStickers | GuildMessageReactions | GuildVoiceStates | MessageContent | GuildInvites My system is similar to what MEE6, Sapphire and other great bots have, which is the "custom bot", where the user can have an exclusive bot instance for his server, being able to change the name and photo of the bot
18 replies
DIAdiscord.js - Imagine an app
Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
@qjuh What I don't understand is why the bot would RateLimit if it's not spamming messages, and if I restart the bot it goes back to responding normally in the channel. If it was RateLimit I would have to wait some time even after restarting the application
18 replies
RRailway
Created by LuaN on 8/4/2023 in #✋|help
how can i install puppeteer to my application in Railway?
I solved it using Dockerfile to install all dependencies, thanks!
47 replies
RRailway
Created by LuaN on 8/4/2023 in #✋|help
how can i install puppeteer to my application in Railway?
nixpacks
47 replies
RRailway
Created by LuaN on 8/4/2023 in #✋|help
how can i install puppeteer to my application in Railway?
47 replies
RRailway
Created by LuaN on 8/4/2023 in #✋|help
how can i install puppeteer to my application in Railway?
I believe this error occurs as I need to install some dependencies using apt-get as the documentation shows
47 replies
RRailway
Created by LuaN on 8/4/2023 in #✋|help
how can i install puppeteer to my application in Railway?
i have this error
47 replies
RRailway
Created by LuaN on 8/4/2023 in #✋|help
how can i install puppeteer to my application in Railway?
47 replies