Giter Club home page Giter Club logo

Comments (10)

LackyPal avatar LackyPal commented on June 28, 2024 2

If you plan to do this, then add some more features like this. Like emoji name instead of emoji id, channel name instead of channel id...

from discord-tts-bot.

TheCrafters001 avatar TheCrafters001 commented on June 28, 2024 1

Ok, I'm gonna put this as a feature request and try to get it done. I'll see if I can do it this week cause I've been quite busy :(

Alright! Take your time. I am in no big rush to get it fixed. :)

from discord-tts-bot.

moonstar-x avatar moonstar-x commented on June 28, 2024

As of right now this is the normal behavior. Mentions are received as the user ID which is why the bot is saying the user ID instead of their name.

I don't know if it would be worth to parse the mentions so the bot says their name instead of their ID since you can essentially just write their name instead of mentioning them. Is there a reason why you mention the user rather than just writing their name?

from discord-tts-bot.

TheCrafters001 avatar TheCrafters001 commented on June 28, 2024

As of right now this is the normal behavior. Mentions are received as the user ID which is why the bot is saying the user ID instead of their name.

I don't know if it would be worth to parse the mentions so the bot says their name instead of their ID since you can essentially just write their name instead of mentioning them. Is there a reason why you mention the user rather than just writing their name?

I self-host the bot in a few servers, and sometimes some people tend to ping people on purpose, with the intent of saying the whole user id instead. It isn't a major issue, but for those who don't want to talk, it can get very annoying very fast.

from discord-tts-bot.

moonstar-x avatar moonstar-x commented on June 28, 2024

I see, so you would expect the bot to say their name instead of their ID, right?

from discord-tts-bot.

TheCrafters001 avatar TheCrafters001 commented on June 28, 2024

I see, so you would expect the bot to say their name instead of their ID, right?

Correct.

from discord-tts-bot.

moonstar-x avatar moonstar-x commented on June 28, 2024

Ok, I'm gonna put this as a bug report and try to get it done. I'll see if I can do it this week cause I've been quite busy :(

from discord-tts-bot.

LackyPal avatar LackyPal commented on June 28, 2024

A simple solution for this issue which is not the best but good. There is mesage.cleanContent

we may use this on say command

const content = mesage.cleanContent.slice(`${this.client.prefix}say`.length);
ttsPlayer.say(content, GoogleProvider.NAME);

from discord-tts-bot.

moonstar-x avatar moonstar-x commented on June 28, 2024

Hi, thanks again for the suggestion.

I still haven't found enough time to work on this, I'm waiting for my semester to end in about 3 weeks so I can work on this.

In any case, as you may have seen from issue #54, all commands will be updated into slash commands and that means no message event handler.

from discord-tts-bot.

moonstar-x avatar moonstar-x commented on June 28, 2024

Fixed in #58.

from discord-tts-bot.

Related Issues (20)

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.