SillyTavern/public/scripts/extensions/attachments/index.js

10 lines
446 B
JavaScript
Raw Normal View History

2024-04-16 01:14:34 +02:00
import { renderExtensionTemplateAsync } from '../../extensions.js';
import { registerSlashCommand } from '../../slash-commands.js';
2024-04-16 01:14:34 +02:00
jQuery(async () => {
const buttons = await renderExtensionTemplateAsync('attachments', 'buttons', {});
$('#extensionsMenu').prepend(buttons);
registerSlashCommand('db', () => document.getElementById('manageAttachments')?.click(), ['databank', 'data-bank'], ' open the data bank', true, true);
2024-04-16 01:14:34 +02:00
});