Refactor local memory and role-fixed runtime routing

This commit is contained in:
Eyejoker
2026-04-04 03:50:28 +09:00
parent ca58e8c8eb
commit 3dd772c229
47 changed files with 6158 additions and 669 deletions

View File

@@ -825,6 +825,18 @@ describe('DiscordChannel', () => {
expect(channel.ownsJid('dc:1234567890123456')).toBe(true);
});
it('can be configured as an outbound-only role bot', () => {
const channel = new DiscordChannel(
'test-token',
createTestOpts(),
undefined,
'discord-review',
false,
false,
);
expect(channel.ownsJid('dc:1234567890123456')).toBe(false);
});
it('does not own WhatsApp group JIDs', () => {
const channel = new DiscordChannel('test-token', createTestOpts());
expect(channel.ownsJid('12345@g.us')).toBe(false);