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

Respond with a help message if command is not recognized #12

Open
tk3369 opened this issue Mar 24, 2021 · 0 comments
Open

Respond with a help message if command is not recognized #12

tk3369 opened this issue Mar 24, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@tk3369
Copy link
Member

tk3369 commented Mar 24, 2021

If you typed a command that isn't recognized then it should display a help message. For example:

,tz

I just reviewed the code again. There should be an easy fix around here:

function time_zone_commander(c::Client, m::Message)
# @info "time_zone_commander called"
# @info "Message content" m.content m.author.username m.author.discriminator
startswith(m.content, COMMAND_PREFIX * "tz ") || return

@tk3369 tk3369 added good first issue Good for newcomers bug Something isn't working labels Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant