robots

package module
v0.0.0-...-42283ad Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

robots

Toolkit for building rich interactive, AI-enhanced publishing robots on the Geomodulus platform.

Usage

This library requires node, npm and one specific JS library, prettier. Be sure to install it from package.json using the following command:

 npm install

Github support

One common goal of bots running on the Geomodulus platform is contributing to the various content repositories including Corpus and Places. This can be accomplished by most contributors using a bot that built with the github package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackAppMentionHandler

type SlackAppMentionHandler interface {
	HandleAppMention(ctx context.Context, ev *slackevents.AppMentionEvent) error
}

type SlackBlockActionHandler

type SlackBlockActionHandler interface {
	HandleBlockAction(ctx context.Context, action, value string, callback slack.InteractionCallback) error
}

type SlackBot

type SlackBot struct {
	*slack.Client
	Handler any
	Socket  *socketmode.Client
}

func (*SlackBot) Reply

func (b *SlackBot) Reply(channel string, ts string, opts ...slack.MsgOption) error

func (*SlackBot) Run

func (b *SlackBot) Run(ctx context.Context)

Run starts the bot.

type SlackMessageHandler

type SlackMessageHandler interface {
	HandleMessage(ctx context.Context, ev *slackevents.MessageEvent) error
}

type SlackSlashCommandHandler

type SlackSlashCommandHandler interface {
	HandleSlashCommand(ctx context.Context, cmd string) ([]slack.Block, error)
}

type SlackViewSubmissionHandler

type SlackViewSubmissionHandler interface {
	HandleViewSubmission(ctx context.Context, action, value, privateMetadata string, callback slack.InteractionCallback) error
}

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

func NewUploader

func NewUploader(ctx context.Context, slackToken string, prefix string) (*Uploader, error)

func (*Uploader) Upload

func (u *Uploader) Upload(ctx context.Context, slug, downloadURL string) (string, error)

Directories

Path Synopsis
Package prettier clean up JS, JSON and HTML.
Package prettier clean up JS, JSON and HTML.

Jump to

Keyboard shortcuts

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