Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nano-module-embed-styler

About

The embed customization module for nano-core (kind command). The core covers embeds 100% with default styling; this module layers customization on top: the midnight theme, five ready-made embed templates, and /embed to fill a template, attach an image, and send it to any channel.

Commands

All require the ManageMessages permission.

CommandDescription
/embed sendFill a template and send it (optional channel target)
/embed previewRender the same options ephemerally
/embed templatesList every registered template and its slots

Options of send / preview: template (autocomplete), title, message, version (changelog), theme, image (attachment).

Templates

NamePurposeSlots
announcementServer announcement with author headertitle, message, guild
alertRed attention bannertitle, message
noticeNeutral informational cardtitle, message
changelogRelease notesversion, title, message
welcomeGreets a member by nameuser, message

{{user}} and {{guild}} fill automatically from the interaction. Templates register on enable through the core’s template registry (registerEmbedTemplate), so other modules can render them too.

Install

From a nano-core checkout (requires core >= 0.3.0):

npm run module install embed-styler

Or manually: clone this repo into modules/embed-styler and add ./modules/embed-styler to the modules list in nano.config.json.

Configuration

The nano-tui.json panel exposes default_theme — the theme used when /embed is called without one. Everything else is a per-invocation option.

Development

The module imports everything from the @ccs-devhub/nano-core public barrel. For a standalone typecheck, clone nano-core as a sibling directory (its tsconfig.json maps the package name to the core sources), then:

npm install
npm run check

License

MIT — modules may use any license; the core stays MPL-2.0.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages