Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmds command response exceeds message character limit #225

Open
rasitds opened this issue Jun 22, 2023 · 2 comments
Open

cmds command response exceeds message character limit #225

rasitds opened this issue Jun 22, 2023 · 2 comments
Assignees
Labels
apps/twitch-bot twitch bot bug Something isn't working planned

Comments

@rasitds
Copy link
Member

rasitds commented Jun 22, 2023

Describe the bug
cmds command does not write anything because of message character limit

@rasitds rasitds added bug Something isn't working apps/twitch-bot twitch bot labels Jun 22, 2023
@tw4
Copy link
Member

tw4 commented Jun 22, 2023

Hello,

To solve this issue, we can utilize a redirection approach. When the command list exceeds a character limit, we can direct the user to a webpage.

Assuming we have a web server, we can create a URL such as https://senchabot.app/commandlist/<twitch-username>. When our bot receives a request from a user for the command list, it can return this URL. Upon navigating to this URL, the user will be able to see the command list.

This approach effectively presents long command lists and prevents exceeding Twitch's message limitations. Additionally, it provides a clear and user-friendly interface for users to review and use the command list.

So, we message could be:

'Please visit this link to view the command list: https://senchabot.app/commandlist/<your-twitch-username>. This will display all available commands in detail.'

@rasitds rasitds added the do it label Jun 25, 2023
@rasitds
Copy link
Member Author

rasitds commented Jul 5, 2023

I wrote a temporary fix for this in pr #238

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apps/twitch-bot twitch bot bug Something isn't working planned
Projects
None yet
Development

No branches or pull requests

4 participants