Fix NSFW reply refusals and media offers
This commit is contained in:
1 parent
e9a4c965ee
commit
6b2e1bc380
11 files changed
+161
-22
No files matched your search
@@ -21,6 +21,11 @@ describe('media library request detection', () => {
|
||||
it('does not treat an unrelated show-me instruction as an image request', () => {
|
||||
expect(detectMediaRequest('show me how this works')).toBeNull();
|
||||
});
|
||||
|
||||
it('treats clear acceptance of the bot\'s prior generic media offer as a request', () => {
|
||||
expect(detectMediaRequest('yes please 😏', [], 'Want me to send you a pic?')).toBe('generic');
|
||||
expect(detectMediaRequest('yes please', [], 'Want to hear a joke?')).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
describe('MediaLibraryExchangeService', () => {
|
||||
|
||||
Reference in new issue
Block a user