> kubectl describe project parsley
Name: Parsley
Summary: Command parser library for Discord bots.

> kubectl get services -n parsley
NAME
   
URL
                                            

Docs
   
https://pkg.go.dev/github.com/nint8835/parsley
 

GitHub
 
https://github.com/nint8835/parsley
            


> kubectl get project parsley --output=markdown

About

Parsley is an addon for the discordgo Discord client library for Go, adding an automatic command parser & dispatch system.

Bot authors can write commands for their Parsley-powered bots by implementing a handler function, taking two arguments - the MessageCreate event from discordgo, and an arbitrary struct of their own choosing. Parsley will then, on receipt of a message with a matching command, perform reflection on the provided handler and automatically populate the struct via the user’s provided arguments, calling the handler with the resulting value.

Parsley was initially built as borik’s command parser, but was spun out into it’s own library. It was heavily inspired by discord.py’s commands extension.

Bots using Parsley