Giter Site home page Giter Site logo

Comments (4)

D3FAU4T avatar D3FAU4T commented on June 12, 2024 2

Hi, I fixed this issue by changing the last part a little bit, seems like you now need async and await to register the slash commands, something like this... so after the const rest line, delete that and put this and the commands should register >>

(async () => {
  try {
    console.log('Started refreshing application (/) commands.');
    await rest.put(Routes.applicationCommands(clientId), { body: commands })
	.then(() => console.log('Successfully registered application commands.'))
	.catch(console.error);
  } catch (error) {
    console.error(error);
  }
})();

Pero @eliangerard hay un problema, el bot no habla en el canal de voz, solo responde en texto 😬, También tuve que poner esta línea en el archivo Response.js; de lo contrario, para algunas consultas, el bot envía un mensaje vacío y se atasca con la API de discord 😥 if (text.length == 0 || text == "") return;

from discord-assistant-v2.

eliangerard avatar eliangerard commented on June 12, 2024 1

Can you give me more information? Are you unable to use Slash Command or are you not getting a response?

from discord-assistant-v2.

ShrimantaGarain avatar ShrimantaGarain commented on June 12, 2024

yes there is no response from the bot ...actually there is no / cmd option available to discord chat box. also there is no error with code running console and the permission is also 8

from discord-assistant-v2.

eliangerard avatar eliangerard commented on June 12, 2024

Hola, 4 meses después ya está arreglado, agregué lo que me dijiste @D3FAU4T y por lo de los mensajes vacíos, aparentemente el API de Google Assistant no siempre devuelve una respuesta con texto, este actúa como ayuda visual pero no siempre tiene que existir, por la naturaleza del asistente, así que si eso sucede, lo indica, muchas gracias :)

from discord-assistant-v2.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.