-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Feat/better messages #318
Feat/better messages #318
Conversation
LGTM so far, thank you very much! @andreaskoepf I'll leave approval to you |
this also fixes a bug where I was sending ranking responses as a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thnx! will test interaction after merge.
discord-bot/.env.example
Outdated
@@ -1,7 +1,7 @@ | |||
BOT_TOKEN=<discord bot token> | |||
DECLARE_GLOBAL_COMMANDS=<testing guild id> | |||
OWNER_IDS=[<your user id>, <other user ids>] | |||
PREFIX="./" | |||
PREFIX="/" # DO NOT LEAVE EMPTY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest also to add a validator in the pydantic settings class, e.g. see https://docs.pydantic.dev/usage/validators/
# A `dict[hikari.Message | None, UUID | None]]` that maps user IDs to (task msg ID, task UUIDs). | ||
# Either both are `None` or both are not `None`. | ||
# If both are `None`, the user is not currently selecting a task. | ||
# TODO: Grow this on startup so we don't have to re-allocate memory every time it needs to grow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in general not necessary (premature optimization).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, it's just a reminder for the future. Should I change "TODO" to some other word?
There are a few things that changed in this PR
discord-bot/bot/messages.py