aMytho / GlimBoi

A chatbot for Glimesh.tv
https://glimboi.com
MIT License
8 stars 3 forks source link

Custom commands are not working properly #91

Closed TS-Steve closed 2 years ago

TS-Steve commented 3 years ago

Using custom commands in chat does not return the data assigned. Instead, when a custom command is used, nothing happens. I'm using the latest version.

I have tried default commands which work fine but the custom commands are not returning anything.

Rocket League

aMytho commented 3 years ago

Thanks for making an issue!

The problem is likely one of a few things:

  1. The command response contains links and the channel has them disabled.
  2. The command is more than 1 word. (IDK if this is works, but its unlikely)
  3. The command is invalid in some form.

Can you post an image of your command page?

TS-Steve commented 3 years ago

You're right, I had links disabled but I thought mods were allowed to bypass that including bots.

TS-Steve commented 3 years ago

I'm wondering if there is a way to make links clickable or is that not coded into the bot right now.

MythoAway commented 3 years ago

Responding from alt account-

Glimesh has that as a channel setting for Glimesh chat. It would be possible to implement that into the bot chat, I just need to find a way to parse it with JS. After that I can direct it to the users default browser (can't load the link in the bot, electron security reasons). I also want to add the glimdrops and channel emotes, so I'll likely get to this eventually (after/during v2.0). That being said, most users just use Glimesh chat and let the bot run in minimized mode so this isn't a priority atm.

aMytho commented 3 years ago

I forgot about the chat parts API. Parsing is already handled, just have to switch the chat system.

TS-Steve commented 3 years ago

Responding from alt account-

Glimesh has that as a channel setting for Glimesh chat. It would be possible to implement that into the bot chat, I just need to find a way to parse it with JS. After that I can direct it to the users default browser (can't load the link in the bot, electron security reasons). I also want to add the glimdrops and channel emotes, so I'll likely get to this eventually (after/during v2.0). That being said, most users just use Glimesh chat and let the bot run in minimized mode so this isn't a priority atm.

Gotcha, can't wait for Glimdrops and channel emotes to be added.

I forgot about the chat parts API. Parsing is already handled, just have to switch the chat system.

Ah I see.

MythoAway commented 2 years ago

Glimdrops/emotes/URL/msg are now shown in the chat window. It will be released with 2.0

aMytho commented 2 years ago

Added in 2.0, will be released when I know the final test version is without errors.