import { Notice, Plugin } from 'obsidian'; export default class ExoPlugin extends Plugin { async onload() { this.addRibbonIcon('dice', 'Exo', () => { this.showModal(); }); this.addCommand({ id: 'exo-first-notice', name: 'Shows simple Notice', callback: () => {this.showModal()} }) } async showModal(): Promise { new Notice('This is Exocortex!'); } onunload() { } }