guggy

package
v0.0.0-...-e61e643 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package guggy implements a Service which adds !commands for Guggy.

Index

Constants

View Source
const ServiceType = "guggy"

ServiceType of the Guggy service

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	types.DefaultService
	// The Guggy API key to use when making HTTP requests to Guggy.
	APIKey string `json:"api_key"`
}

Service contains the Config fields for the Guggy service.

Example request:

{
    "api_key": "fkweugfyuwegfweyg"
}

func (*Service) Commands

func (s *Service) Commands(client *gomatrix.Client) []types.Command

Commands supported:

!guggy some search query without quotes

Responds with a suitable GIF into the same room as the command.

Jump to

Keyboard shortcuts

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