Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

225
Visualizações
Discord bot forward message from chrome extension

I have a chrome extension that uses console.log redirect into a div element when specific events happen. I have created a small Discord bot also (no functions or such, I just created and added it to my Discord channel)

Now instead of using console.log inside that div, I would rather want to send this information, to my bot and the bot should forward the message to a specific user.

Is that possible and if so, how?

Code for DC bot:

const discord = require('discord.js');
const slash = require('slash_commands.js');

const bot = new discord.Client({ intents: [discord.Intents.FLAGS.GUILDS, discord.Intents.FLAGS.GUILD_MESSAGES] });

bot.login('xxx');

bot.on('ready', () => {
    console.log('Bot started');
});

So the bot is started and joined my Discord server. So maybe lets assume that this is the current situation:

Lets say my chrome extension is scanning for a website that contains prices. Instead of letting the chrome extension log the results to that div element, I would like to let the chrome extension send a command/message to my Discrod bot and then he will forward this inforamtion with a private message to a specific user.

Anyone had the same situation and could help me out how the code would have to like for this process? I was trying to figure it out myself for 4 days now.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda