🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

meow.tf/astral/v2

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

meow.tf/astral/v2

Go Modules
Version
v2.0.0-20251010032127-4424b7cb6d3e
Version published
Created
Source

Astral

A command router for discordgo with a few twists.

Heavily inspired by dgrouter, but based off the command system used in Astra.

Importing/Installing

go get meow.tf/astral
import "meow.tf/astral/router"

Signatures

Astral supports signatures, which are a command and arguments defined in a single string.

Example:

command <something> <#channel> [optional]

This defines a command command, with required argument something, channel argument channel, and optional optional.

Middleware

Each route can have middleware assigned to back out/stop execution of a command. This is useful for injecting parameters, checking conditions (Permissions, NSFW), etc.

See the "middleware" folder for examples.

Examples

A basic example showing the usage and middleware is available under examples/basic

FAQs

Package last updated on 10 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts