Skip to content

Add mention support and user restrictions for commands - #2

Merged
avrabe merged 2 commits into
mainfrom
feature/mention-support
Feb 14, 2026
Merged

Add mention support and user restrictions for commands#2
avrabe merged 2 commits into
mainfrom
feature/mention-support

Conversation

@avrabe

@avrabe avrabe commented Feb 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add bot_name config to customize mention format (e.g., @temper[bot])
  • Add allowed_command_users to restrict who can trigger commands
  • Support both /command and @botname command syntax

Changes

  • config.yml.example: Add new config options
  • src/schema.js: Add validation for new config fields
  • src/app.js: Parse mentions and check allowed users

Usage

After merging, users can trigger commands via:

  • /configure-repo (existing)
  • @temper[bot] configure-repo (new)

Configure allowed users in config.yml:

bot_name: temper
allowed_command_users:
  - avrabe
  - other-admin

- Add bot_name config to customize mention format (e.g., @temper[bot])
- Add allowed_command_users to restrict who can trigger commands
- Support both /command and @botName command syntax
- Update config.yml.example with new options
@avrabe
avrabe merged commit f0db2ff into main Feb 14, 2026
7 checks passed
@avrabe
avrabe deleted the feature/mention-support branch February 14, 2026 15:34
@avrabe
avrabe restored the feature/mention-support branch February 14, 2026 16:45
@avrabe
avrabe deleted the feature/mention-support branch March 2, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant