mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-15 18:59:07 +01:00
10 lines
446 B
JavaScript
10 lines
446 B
JavaScript
import { renderExtensionTemplateAsync } from '../../extensions.js';
|
||
import { registerSlashCommand } from '../../slash-commands.js';
|
||
|
||
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);
|
||
});
|