bot

package module
v0.0.0-...-4aa5803 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 16 Imported by: 0

README

mixin-bot

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func Init

func Init(keystore *mixin.Keystore, pin string) (*Bot, error)

func (*Bot) Run

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

type Command

type Command interface {
	Name() string
	Desc() string
	Execute(context.Context, *Session, *mixin.MessageView) (*mixin.MessageRequest, error)
}

type Session

type Session struct {
	Command     string
	UserID      string
	CurrentStep int
	Data        interface{}
}

type SwapAsset

type SwapAsset struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Symbol string `json:"symbol"`
}

type SwapAssetsResp

type SwapAssetsResp struct {
	Ts   int64              `json:"ts"`
	Data SwapAssetsRespData `json:"data"`
}

type SwapAssetsRespData

type SwapAssetsRespData struct {
	Assets []SwapAsset `json:"assets"`
}

Directories

Path Synopsis
cmd
bot

Jump to

Keyboard shortcuts

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