Skip to content

Conversation

@papannnn
Copy link
Collaborator

If you checkin on not allowed channel for checkin, you will get this error message from the bot

image

You need to put channelID inside .env to make it works
image

@papannnn papannnn requested review from alfianchii and zuramai August 10, 2025 17:05
Copy link
Member

@alfianchii alfianchii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

.env.example Outdated
DATABASE_URL=

# Allowed Channel ID for checkin
CHECKIN_ALLOWED_CHANNEL_ID=
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gimana kalau jadi:
CHECKIN_CHANNEL_ID

Come back tomorrow`
Come back tomorrow`

export function generateFailedCheckinWrongChannelID(interaction: ChatInputCommandInteraction, allowedCheckinChannelId: string): string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function name-nya cukup jelas buat gw. Tapi apa ngga kepanjangan? Or, is it OK?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keknya gpp, kalo mau ganti mau jadi apa?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK deh kalau ga masalah. Gaasss

@papannnn papannnn merged commit dbe600d into main Aug 11, 2025
@alfianchii alfianchii deleted the feature/add-validation-only-checkin-on-allowed-channel branch August 11, 2025 13:06
@alfianchii alfianchii added the enhancement New feature or request label Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants