Links

package module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginInfo = &cc.PluginJSON{
	Name:               "Links",
	License:            "BSD-3-Clause",
	Creator:            "Ben <Ponkey364>",
	URL:                "https://gitlab.com/RPGPN/crius-plugin-links/",
	Description:        "Link storage plugin",
	SupportedPlatforms: cc.PlatformTwitch | cc.PlatformGlimesh | cc.PlatformDiscord,
	Commands: []*cc.PJCommand{
		{
			HandlerName:        "newlink",
			Name:               "New Link",
			Help:               "Add a link to the storage. Usage: newlink [name] [URL]",
			Activator:          "newlink",
			SupportedPlatforms: cc.PlatformTwitch | cc.PlatformGlimesh | cc.PlatformDiscord,
		},
		{
			HandlerName:        "link",
			Name:               "Get Link",
			Help:               "Get a link. Usage: link [name]",
			Activator:          "link",
			SupportedPlatforms: cc.PlatformTwitch | cc.PlatformGlimesh | cc.PlatformDiscord,
		},
		{
			HandlerName:        "links",
			Name:               "List Links",
			Help:               "Get a list of all the links for the server.",
			Activator:          "links",
			SupportedPlatforms: cc.PlatformTwitch | cc.PlatformGlimesh | cc.PlatformDiscord,
		},
		{
			HandlerName:        "removelink",
			Name:               "Remove Link",
			Help:               "Remove a link. Usage: removelink [name]",
			Activator:          "removelink",
			SupportedPlatforms: cc.PlatformTwitch | cc.PlatformGlimesh | cc.PlatformDiscord,
		},
	},
}

Functions

func Setup

func Setup(ctx context.Context) (map[string]cc.CommandHandler, error)

Types

type Link struct {
	LinkID   int    `db:"link_id"`
	RealmID  string `db:"realm_id"`
	LinkName string `db:"link_name"`
	LinkTo   string `db:"link_to"`
	Platform string `db:"platform"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL