-
Notifications
You must be signed in to change notification settings - Fork 12
Introduce Submission bot & refactor bot feature, invite submission bot to a room #3821
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,43 @@ | ||||||||
| 'use strict'; | ||||||||
|
|
||||||||
| module.exports = { | ||||||||
| root: true, | ||||||||
| env: { | ||||||||
| node: true, | ||||||||
| }, | ||||||||
| parser: '@typescript-eslint/parser', | ||||||||
| parserOptions: { | ||||||||
| ecmaVersion: 2020, | ||||||||
| sourceType: 'module', | ||||||||
| ecmaFeatures: { | ||||||||
| legacyDecorators: true, | ||||||||
| }, | ||||||||
|
Comment on lines
+12
to
+14
|
||||||||
| ecmaFeatures: { | |
| legacyDecorators: true, | |
| }, |
Copilot
AI
Jan 12, 2026
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.
The 'ember' plugin is included in the plugins array but this is not an Ember package - it's a pure Node.js/TypeScript utility package. The ember plugin should be removed since it's not needed for bot-core.
| plugins: ['ember'], |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| // Matrix client utilities | ||
| export { | ||
| createBotMatrixClient, | ||
| type BotMatrixClientConfig, | ||
| } from './lib/matrix-client'; | ||
|
|
||
| // Room locking for concurrency control | ||
| export { acquireRoomLock, releaseRoomLock } from './lib/room-lock'; | ||
|
|
||
| // Graceful shutdown utilities | ||
| export { | ||
| isShuttingDown, | ||
| setShuttingDown, | ||
| handleShutdown, | ||
| createShutdownHandler, | ||
| type ShutdownConfig, | ||
| } from './lib/shutdown'; | ||
|
|
||
| // Signal handlers (SIGTERM, SIGINT) | ||
| export { | ||
| setupSignalHandlers, | ||
| type SignalHandlerConfig, | ||
| } from './lib/signal-handlers'; | ||
|
|
||
| // Sliding sync setup | ||
| export { createSlidingSync, type SlidingSyncConfig } from './lib/sliding-sync'; | ||
|
|
||
| // Membership utilities (auto-join on invite) | ||
| export { setupAutoJoinOnInvite, type AutoJoinConfig } from './lib/membership'; |
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.
the invite command shud invite any user. This input can be a subclass if neeeded
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.
submissionTarget and submissionType are obviously part of submission bot only