guggy

package
v0.0.0-...-3ba3d46 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 11 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 types.MatrixClient) []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