wikipedia

package
v0.0.0-...-f1068a2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package wikipedia implements a Service which adds !commands for Wikipedia search.

Index

Constants

View Source
const ServiceType = "wikipedia"

ServiceType of the Wikipedia service

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	types.DefaultService
}

Service contains the Config fields for the Wikipedia service.

func (*Service) Commands

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

Commands supported:

!wikipedia some_search_query_without_quotes

Responds with a suitable article extract and link to the referenced page 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